[HELP] job quit
#2

pawn Код:
CMD:jobquit(playerid,params[])
{
    if(PlayerInfo[playerid][Job] == 0) return SCM(playerid,COLOR_GRAD2,"{F81414}[Greska!] {C3C3C3}You have no job!");
    if (0 <= PlayerInfo[playerid][JobContract] < 5) return SCMF(playerid,COLOR_LIGHTBLUE,"You can not quit, you're done %d of the required five hours of contract!",PlayerInfo[playerid][JobContract]); // This line was incorrect as you've done if the player has less then or five hours of work. You need just the < symbol.
    PlayerInfo[playerid][Job] = 0;
    PlayerInfo[playerid][JobContract] = 0;
    SCM(playerid,COLOR_YELLOW,"*You have quit from the job.");
    return 1;
}
Reply


Messages In This Thread
[HELP] job quit - by Luca12 - 27.05.2014, 15:00
Re: [HELP] job quit - by superwaldo92 - 27.05.2014, 15:11

Forum Jump:


Users browsing this thread: 2 Guest(s)