I have little bug
#1

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;
}
Reply


Messages In This Thread
I have little bug (+rep) - by Join7 - 29.02.2012, 17:11
Re: I have little bug - by Stylock - 29.02.2012, 17:33
Re: I have little bug - by Join7 - 29.02.2012, 17:58
Re: I have little bug - by Mike_Peterson - 29.02.2012, 17:59
Re: I have little bug - by Join7 - 29.02.2012, 18:05
Re: I have little bug - by Mike_Peterson - 29.02.2012, 18:07
Re: I have little bug - by Join7 - 29.02.2012, 18:16
Re: I have little bug - by Mike_Peterson - 29.02.2012, 18:21
Re: I have little bug - by Join7 - 29.02.2012, 18:28
Re: I have little bug - by Joey^ - 29.02.2012, 18:32

Forum Jump:


Users browsing this thread: 2 Guest(s)