Little admin tool I'm scripting. I'm quite new with GS2, so I figured it would be a good first attempt.
Anyway, it's not working, not throwing off any errors either. Hoping I could get some help...
PHP Code:
if (actionserverside) {
if (params[0]=="/head") {
with (params[1]) {
players.headimg=params[2];
}
}
...
//#CLIENTSIDE
function onPlayerChats()
{
if (players.chat.starts("/")) {
tokens = string.tokenize(players.chat);
triggeraction(0,0,"serverside","Staff Tool",tokens[0],tokens[1],tokens[2],tokens[3]);
}
}
anybody seeing what's wrong?
EDIT: Thanks lance, after reading that I checked back and was able to fix the whole tool.
I got the uses of players and player mixed up