Trouble with Timer
#10

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;
}
Reply


Messages In This Thread
Trouble with Timer - by preshantram - 20.08.2012, 08:30
Re: Trouble with Timer - by Cjgogo - 20.08.2012, 08:33
Re: Trouble with Timer - by preshantram - 20.08.2012, 08:37
Re: Trouble with Timer - by Cjgogo - 20.08.2012, 08:39
Re: Trouble with Timer - by preshantram - 20.08.2012, 08:40
Re: Trouble with Timer - by Cjgogo - 20.08.2012, 08:46
Re: Trouble with Timer - by preshantram - 20.08.2012, 08:59
Re: Trouble with Timer - by Cjgogo - 20.08.2012, 09:06
Re: Trouble with Timer - by preshantram - 20.08.2012, 09:09
Re: Trouble with Timer - by Cjgogo - 20.08.2012, 09:24

Forum Jump:


Users browsing this thread: 9 Guest(s)