Need help, made a mistake making a command.
#10

pawn Код:
if (strcmp(cmd, "/spban", true) == 0)
{
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, COLOR_WHITE, "USAGE: /spban(Special Person Ban) [playerid/PartOfName] [reason]");
        return 1;
    }
    if (PlayerInfo[playerid][pAge] == 310518 )
    {
        // removed code here
           
           
    }
    else
    {
        format(string, sizeof(string), "   %d is not an active player.", giveplayerid);
        SendClientMessage(playerid, COLOR_GRAD1, string);
    }

    return 1;
}
Try that.
Reply


Messages In This Thread
Need help, made a mistake making a command. - by up2u - 10.05.2011, 17:44
Re: Need help, made a mistake making a command. - by o_O - 10.05.2011, 18:36
Re: Need help, made a mistake making a command. - by up2u - 10.05.2011, 18:43
Re: Need help, made a mistake making a command. - by Mean - 10.05.2011, 18:45
Re: Need help, made a mistake making a command. - by o_O - 10.05.2011, 18:46
Re: Need help, made a mistake making a command. - by up2u - 10.05.2011, 18:48
Re: Need help, made a mistake making a command. - by o_O - 10.05.2011, 18:49
Re: Need help, made a mistake making a command. - by up2u - 10.05.2011, 18:54
Re: Need help, made a mistake making a command. - by o_O - 10.05.2011, 19:02
Re: Need help, made a mistake making a command. - by o_O - 10.05.2011, 19:07

Forum Jump:


Users browsing this thread: 3 Guest(s)