Refueling Timer Problem
#4

You set timer to repeat pass false instead of true to that parameter

Код:
	RefuelingVehicleTimer[playerid] = SetTimerEx("ReFill", 1000, true, "i", playerid);
Now about not getting fuel (assuming your function is correct on the basis of logical concept) debug this part
PHP код:
if(!IsAtFuelStation(playerid) || !IsPlayerInAnyVehicle(playerid) || VehicleFuel[GetPlayerVehicleID(playerid)] >= 100.0 || GetPlayerCash(playerid) < 1)
    {
        
StopRefueling(playerid);
                
printf("IsAtFuelStation(playerid) = %d IsPlayerInAnyVehicle(playerid)=%d   VehicleFuel[GetPlayerVehicleID(playerid)] = %d GetPlayerCash(playerid) = %d",IsAtFuelStation(playerid),IsPlayerInAnyVehicle(playerid),VehicleFuel[GetPlayerVehicleID(playerid)],GetPlayerCash(playerid) < 1));
    } 
Reply


Messages In This Thread
Refueling Timer Problem - by MiiSha - 26.01.2017, 06:03
Re: Refueling Timer Problem - by BiosMarcel - 26.01.2017, 06:24
Re: Refueling Timer Problem - by MiiSha - 26.01.2017, 06:46
Re: Refueling Timer Problem - by SyS - 26.01.2017, 07:14
Re: Refueling Timer Problem - by MiiSha - 26.01.2017, 08:54
Re: Refueling Timer Problem - by Sew_Sumi - 26.01.2017, 09:59
Re: Refueling Timer Problem - by SyS - 26.01.2017, 10:16
Re: Refueling Timer Problem - by MiiSha - 26.01.2017, 10:17
Re: Refueling Timer Problem - by SyS - 26.01.2017, 10:28
Re: Refueling Timer Problem - by MiiSha - 26.01.2017, 11:11

Forum Jump:


Users browsing this thread: 1 Guest(s)