If you exit a vehicle, it cancels the job. (need help)
#11

Quote:
Originally Posted by Dr
View Post
pawn Code:
simplejobrunning[playerid];
Make sure you put the:
pawn Code:
;
This is my current code, it compiles fine but does not work in-game.

pawn Code:
new simplejobrunning[MAX_PLAYERS];
pawn Code:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(simplejobrunning[playerid] == 1)
    {
        simplejobrunning[playerid] = 0;
        SendClientMessage(playerid, COLOR_RED, "You're job was canceled due to exiting the Vehicle");
        DisablePlayerCheckpoint(playerid);
    }
    return 1;
}
Do I change
pawn Code:
new simplejobrunning[MAX_PLAYERS];
to
pawn Code:
new simplejobrunning[playerid];
?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)