20.08.2012, 09:24
AH,error spotted,I took a CLOSER at your code,try REPLACE THE whole thing with this:
pawn Код:
new JobUpdate[MAX_PLAYERS];
forward JobTimer(playerid);
public OnPlayerExitVehicle(playerid, vehicleid)
{
new Veh=GetVehicleModel(GetPlayerVehicleID(playerid));
if(Veh == 448)
{
RemovePlayerFromVehicle(playerid);
JobUpdate[playerid]= SetTimerEx("JobTimer", 20000, true, "d", playerid);
ShowPlayerDialog(playerid, 6, DIALOG_STYLE_MSGBOX,"Pizzajob","You have left the pizzaboy, you have 20 seconds left to get back to work!", "ok", "");
}
return 1;
}
public JobTimer(playerid)
{
ShowPlayerDialog(playerid, 16, DIALOG_STYLE_MSGBOX,"Pizzajob","I am not paying you for this!, you are fired", "ok", "");
PlayerJob[playerid] = 0;
}