I have little bug
#8

I see the problem here..
ok, so what u do is this.

put this under OnPlayerCommandText
pawn Код:
new cmd[256], idx, tmp[256];
cmd = strtok(cmdtext, idx);
tmp = strtok(cmdtext, idx);
replace your command with
pawn Код:
if(strcmp(cmd, "/removetoga", true) == 0)
{
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, COLOR_WHITE, "/removetoga (playerid)");
    }
    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;
}
please notify me if this works.
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: 1 Guest(s)