29.02.2012, 17:11
When I write "/removetoga 0", appears to me "Unknown command"
Код:
if(strcmp(cmdtext, "/removetoga", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "/removetoga (playerid)"); return 1; } togaplayerid = ReturnUser(tmp); if(togaplayerid!= INVALID_PLAYER_ID) { if(PlayerInfo[togaplayerid][Toga] == 0) { SendClientMessage(playerid, COLOR_RED, "This administrator not have a toga."); } else if(PlayerInfo[togaplayerid][Toga] == 1) { new rtoga[128]; PlayerInfo[togaplayerid][aTog] = 0; format(rtoga, sizeof(rtoga),"You remove %s's toga.", GetName(togaplayerid)); SendClientMessage(playerid, COLOR_LIGHTBLUE, rtoga); } } return 1; }