25.03.2013, 15:58
My quitjob doesnt work.
It always says "You dont have a job"
0 should be default = no job
It always says "You dont have a job"
Код:
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; }