GetTokenNameByIndex - hossimo/GMA3Plugins GitHub Wiki
GetTokenNameByIndex(int:index) : string
Brief:
Gives the command token given it's index. Not sure how safe it would be to trust the index, but a good way to iterate through all the commands.
Paramiters:
Name |
Type |
Description |
Optional |
index |
int |
index to retrive token for |
|
Returns:
Type |
Description |
string |
Command Token |
Examples:
local x
local i = 1
x = GetTokenNameByIndex(i)
repeat
Echo(i .. " " .. x)
i = i + 1
x = GetTokenNameByIndex(i)
until x == nil
-- 1 Flash
-- 2 Black
-- 3 Go+
-- 4 Go-
-- ...
-- 120 +
-- 121 -