Quote:
Originally Posted by Stefan
Yes the exact translation from tokenize from GS1 to GS2 is
tokens = player.chat.tokenize();
Your example could be like this (to make it as short as possible):
clientr.randomstring = player.chat.tokenize()[1];
|
Another way of tokenizing in GS2 (tokenize2 ,; ) is:
tokens = player.chat.tokenize( "_");
If I'd say hi_lol_how_are_you
tokens would be { "hi", "lol", "how", "are", "you"}.
tokens[ 3] would get "are", tokens[ 0] would get "hi".