Problem with command
#7

place the ZCMD commands Outside a Callbacks.
or it will not works

Edit: try this.

pawn Код:
CMD:quitjob(playerid,params[])
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pJob] >= 0)
        {
            if(PlayerInfo[playerid][pRegularRank] >= 0)
            {
                SendClientMessage(playerid, COLOR_WHITE, "You have quit a job!");
                PlayerInfo[playerid][pJob] = 0;
                PlayerInfo[playerid][pChar] = 0;
                PlayerInfo[playerid][pContractTime] = 0;
                SetPlayerToTeamColor(playerid);
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "You do not have a job!");
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Problem with command - by UnknownGamer - 17.09.2012, 23:37
AW: Problem with command - by arvifilter - 18.09.2012, 00:06
Re: Problem with command - by antonio112 - 18.09.2012, 00:35
Re: Problem with command - by trapstar2020 - 18.09.2012, 03:14
Re: Problem with command - by UnknownGamer - 18.09.2012, 10:18
Re: Problem with command - by clarencecuzz - 18.09.2012, 10:23
Re: Problem with command - by Devilxz97 - 18.09.2012, 10:28

Forum Jump:


Users browsing this thread: 1 Guest(s)