[HELP] command /quit
#6

The code above fixes the problem, you just need to change the name of the command.

The problem was here:
pawn Код:
if(PlayerInfo[playerid][JobContract] < 5) return SCMF(playerid,SVIJETLOPLAVA,"You can't quit, you are done %d hours of 5 job contract !",PlayerInfo[playerid][JobContract]);
If PlayerInfo[playerid][JobContract] == 0, then 0 is less than 5 (0 < 5). So you will get that error message.
So I made it:
pawn Код:
if(0 < PlayerInfo[playerid][JobContract] < 5)
If PlayerInfo[playerid][JobContract] is between 0 and 5, then send the message.
Reply


Messages In This Thread
[HELP] command /quit - by Luca12 - 22.05.2014, 10:03
Re: [HELP] command /quit - by DaniceMcHarley - 22.05.2014, 10:41
Re: [HELP] command /quit - by Stanford - 22.05.2014, 10:47
Re: [HELP] command /quit - by Threshold - 22.05.2014, 11:03
Re: [HELP] command /quit - by Luca12 - 22.05.2014, 11:07
Re: [HELP] command /quit - by Threshold - 22.05.2014, 11:59
Re: [HELP] command /quit - by Konstantinos - 22.05.2014, 12:14
Re: [HELP] command /quit - by Threshold - 24.05.2014, 05:52
Re: [HELP] command /quit - by Youssef214 - 24.05.2014, 06:38
Re: [HELP] command /quit - by JFF - 24.05.2014, 06:45

Forum Jump:


Users browsing this thread: 2 Guest(s)