How to output properties and values in a player class?
Code Select
if(cmd=="getglobal")
{
MessagePlayer("[#00FF00]Your Global: ",player);
foreach(i,j in state[player.ID])
{
MessagePlayer("[#00FF00]"+i+" = "+j,player);
}
}
AN ERROR HAS OCCURED [_nexti failed]
CALLSTACK
*FUNCTION [onPlayerCommand()] store/main.nut line [1173]
LOCALS
[j] NULL
[i] NULL
[text] NULL
[cmd] "getglobal"
[player] INSTANCE
[this] TABLE