SAMP /quitjob
#6

Do it like:
Код:
CMD:quitjob(playerid, params[])
{
	if(PlayerInfo[playerid][pJob] > 0)
	{
	    PlayerInfo[playerid][pJob] = 0;
	    SendClientMessage(playerid, COLOR_RED, "<!>You have quited your job!");
	    return 1;
	}
	else
	{
	    SendClientMessage(playerid, COLOR_RED, "<!>You dont even have a job!");
	}
	return 1;
}
pJob can't be less than 0 since you have 0 and 1 job ids
Reply


Messages In This Thread
SAMP /quitjob - by Squirrel - 25.03.2013, 15:58
Re: SAMP /quitjob - by Faisal_khan - 25.03.2013, 16:02
Re: SAMP /quitjob - by Squirrel - 25.03.2013, 16:04
Re: SAMP /quitjob - by Vince - 25.03.2013, 16:09
Re: SAMP /quitjob - by Faisal_khan - 25.03.2013, 16:10
Re: SAMP /quitjob - by dominik523 - 25.03.2013, 16:49

Forum Jump:


Users browsing this thread: 2 Guest(s)