Can't kill a timer
#1

When you exit a vehicle a timer is set off, when you enter the vehicle, the timer should be killed, but it doesn't get killed and it triggers a fuction when a player is driving the vehicle which shouldn't happen.

Код:
This is OnPlayerExitVehicle

	KillTimer(Timer_VehAlarm[vehicleid]);
	Timer_VehAlarm[vehicleid] = SetTimerEx("DisableVehicleLE", 1000*15, false, "d", vehicleid);
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	new Timer_VehAlarm[MAX_VEHICLES];
	KillTimer(Timer_VehAlarm[vehicleid]);
Reply


Messages In This Thread
Can't kill a timer - by Moron - 03.12.2012, 04:24
Re: Can't kill a timer - by Bakr - 03.12.2012, 04:34
Re: Can't kill a timer - by Moron - 03.12.2012, 13:32

Forum Jump:


Users browsing this thread: 1 Guest(s)