![]() |
Tokens?
How do I use tokens? I usually see these in a lot of scripts, I belive it expands the playerchat, like
Hi, how are you? temp.token1 = Hi, temp.token2 = how So on... Im not sure if this is the correct variable usage but, however I see this alot... Please Help >_< |
Syntax: string.tokenize([delimiter])
delimiter - (Optional) string to break the string into tokens by, if you don't specify a delimiter it will be break it apart based on a space. Examples: PHP Code:
|
Quote:
PHP Code:
How could I apply this to playerchat? |
PHP Code:
|
Quote:
player.chat is a string so you can use player.chat.tokenize() just as well. See Seich's example. |
Thanks, I now understand
|
All times are GMT +2. The time now is 08:23 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.