24.05.2011, 12:22
Quote:
|
if(strcmp(cmd, "/skin", true) == 0) new tmp[256]; tmp = strtok(cmdtext,idx); SetPlayerSkin(playerid,strval(tmp)); new string[256], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string, sizeof(string), "%s commanded Change Skin (/skin ID)", pname); SendClientMessageToAll(orange, string); return 1; } |
Note:
-strtok is not always used by all and it's not even defined in your script, but it's not the worst problem.
-cmd is not defined (should be the first strtok)
-there is no { at the start of the command. How is that supposed to work D: ?
Looks like you copied and pasted a part of a gamemode

