
02-12-2006, 06:15 AM
|
|
dark overlord
|
 |
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
|
|
Quote:
|
Originally Posted by Mark Sir Link
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?
|
For starters:
player.chat.tokenize()
not string.tokenize(players.chat) |
|
|
|