23.08.2009, 11:03
Код:
} if (strcmp(cmdtext, "/changeskin", true, 11)==0) { new cmd[256]; cmd = strtok(cmdtext, idx); if(!strlen(cmd)) { SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /changeskin [model id number]"); return 1; } new param2=strval(cmd); if(param2<7) { SendClientMessage(playerid, 0xFFFFFFAA, "skin must be between 7 and 299"); return 1; } if(param2==8||param2==42||param2==65||param2==74||param2==86||param2==208||param2==289) //||74||86||208||289) { SendClientMessage(playerid, 0xFFFFFFAA, "This number references no skin"); return 1; } if(param2>264 && param2<274) { SendClientMessage(playerid, 0xFFFFFFAA, "This number references no skin"); return 1; } if(param2>299) { SendClientMessage(playerid, 0xFFFFFFAA, "skin must be between 7 and 299"); return 1; } SetPlayerSkin(playerid, param2); return 1;
Код:
C:\Documents and Settings\Administrator\Desktop\Stunt-server\gamemodes\StuntWorld.pwn(616) : error 017: undefined symbol "idx"
![Sad](images/smilies/sad.gif)