Originally Posted by Aurorablade
there was an error i found and fixed
line 38 should be
tokencheck,tokenid=_G["EMOTE"..(tokenid+1).."_TOKEN"],tokenid+1;
|
Corrected missing second concatenation operator in my post above.
Thanks for pointing it out.
Originally Posted by Aurorablade
and its not stripping the trailing * at the moment.
|
Line 10 should handle a leading and/or trailing asterisk with a check for a zero-length string. A leading asterisk should cause the first element to be zero-length and a trailing asterisk would have it as the last element. In either case, the entire string is skipped and the code moves on to the next piece. Unless there's a glitch in the API,
strsplit() shouldn't return string pieces containing the delimiter.
Edit: Maybe I should run my code through the game next time before posting, lol.
The following has been fixed in my above code:
-Removed the ";" at the end of the parameter list.
-Fixed more of line 38, missing end bracket for index.
-Replaced
strsplit() with alternate code. (Function returns didn't match documentation.)