03.12.2012, 04:24
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]);