You are currently viewing the GMLscripts.com static mirror. Forum access and script submissions are not available through this mirror.

Invert GMLscripts.com

string_add_spaces

string_add_spaces(str)
Returns the given string with spaces inserted between each character.
COPY/// string_add_spaces(str)
//
//  Returns the given string with spaces inserted between each character.
//
//      str         string to add spaces to, string
//
/// GMLscripts.com/license
{
    var str, len;
    str = argument0;
    len = string_length(str);
    for (j=len; j>0; j-=1) str = string_insert(' ', str, j);
    return str;
}

Contributors: Legolas710, xot

GitHub: View · Commits · Blame · Raw