Quote:
Originally Posted by cbkbud
pshaw. Thats noob code.
PHP Code:
tokens = player.chat.tokenize();
if ( tokens[0] == "/sethat" )
{
player.attr[1] = tokens[1];
}
^-- That's where it's at.
|
That tokenize was seriously unnecessary... I didn't create a var (you also forgot to temp it) and I didn't need to tokenize it then access an index...