Quote:
Originally Posted by Warcaptain
Also in substring() you need to tell it how long as well.
NPC Code:
player.colors[0] = player.chat.substring(4,-1).trim();
|
In new gscript, you do not need to specify a second parameter for substring() if you only want to specify an offset and continue to the end of the string.
PHP Code:
player.colors[0] = player.chat.substring(4).trim();
... is perfectly acceptable.