14.04.2011, 06:55
OK hi i made a myskin command but it sned these errors
And thisi my skin command
Код:
C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(386) : error 017: undefined symbol "cmd" C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(389) : error 017: undefined symbol "strtok" C:\Documents and Settings\user\Desktop\server samp\gamemodes\test.pwn(389) : error 033: array must be indexed (variable "tmp")
Код:
if(strcmp(cmd, "/myskin", true) == 0) { new tmp[256]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, 0xAA3333AA, "Usage: /myskin [skinid]"); return 1; } new skin; skin = strval(tmp); new string[128]; format(string, sizeof(string), "You change your skin to this skin ID: %d", skin); SendClientMessage(playerid, 0xFFFF00AA, string); SetPlayerSkin(playerid, skin); return 1;