Thread: Token problem
View Single Post
  #2  
Old 05-06-2007, 12:42 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Change public function leaderCommand(toks) to (cmd) or something, and then immediately after, do:
PHP Code:
temp.toks temp.cmd.tokenize(); 
Strings don't tokenize themselves; in your script, temp.toks is the full chat string, not a tokenized array from tokenize();.
__________________
Skyld
Reply With Quote