Timer help!
#7

Quote:
Originally Posted by Mr_DjolE
Посмотреть сообщение
Should work...


pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    for(new i=0; i<MAX_VEHICLES; i++)// < What is this for? You dont need this.
    SetTimerEx("ResetCar", 60000, 0,"d", vehicleid);
}
forward ResetCar(vehicleid);
public ResetCar(vehicleid)
{
    DestroyVehicle(vehicleid);
    return 1;
}
Remove the for-loop, you dont even use it.
Reply


Messages In This Thread
Timer help! - by nickbouwhuis - 02.10.2012, 16:36
Re: Timer help! - by gtakillerIV - 02.10.2012, 16:38
Re: Timer help! - by nickbouwhuis - 02.10.2012, 17:06
Re: Timer help! - by Djole1337 - 02.10.2012, 17:11
Re: Timer help! - by nickbouwhuis - 02.10.2012, 17:34
Re: Timer help! - by gtakillerIV - 02.10.2012, 17:46
Re: Timer help! - by RedFusion - 02.10.2012, 17:50
Re: Timer help! - by Djole1337 - 02.10.2012, 17:52
Re: Timer help! - by RedFusion - 02.10.2012, 18:04
Re: Timer help! - by nickbouwhuis - 03.10.2012, 06:07

Forum Jump:


Users browsing this thread: 3 Guest(s)