string_add_spaces

Downloadstring_add_spaces(str)   Returns the given string with spaces in between each letter.
/*
**  Usage:
**      string_add_spaces(str)
**
**  Arguments:
**      str         string to add spaces to
**
**  Returns:
**      the given string with spaces in between each letter
**
**  GMLscripts.com
*/

{
    var str,len;
    str = argument0;
    len = string_length(str);
    for (j=len; j>0; j-=1) str = string_insert(' ', str, j);
    return str;
}

Click if you've used this script[Please Login]
Projects: 12


comments powered by Disqus