KillTimer problem in Fuel System
#7

Now it just say
You are refilling your vehicle's tank.
and its dont take money and dont refuel it

Код HTML:
forward ReFill(playerid);
public ReFill(playerid)
{
	if(VehicleFuel[GetPlayerVehicleID(playerid)] >= 100.0)
	{
      	VehicleFuel[GetPlayerVehicleID(playerid)] = 100.0;
     	KillTimer(RefuelingVehicleTimer[playerid]);
	}
	if(!IsAtFuelStation(playerid) || !IsPlayerInAnyVehicle(playerid) || VehicleFuel[GetPlayerVehicleID(playerid)] >= 100.0 || GetPlayerCash(playerid) < 1)
	{
		StopRefueling(playerid);
	}
	else
	{
	    new engine,lights,alarm,doors,bonnet,boot,objective;
    	GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
		if(engine == VEHICLE_PARAMS_ON) {
			StopRefueling(playerid);
		}
		else {
			VehicleFuel[GetPlayerVehicleID(playerid)] += 1.0;
			RefuelingVehiclePrice[playerid] += 30;
			if(VehicleFuel[GetPlayerVehicleID(playerid)] >= 100.0) VehicleFuel[GetPlayerVehicleID(playerid)] = 100.0;
		}
	}
	return true;
}
Reply


Messages In This Thread
KillTimer problem in Fuel System - by Kenway - 20.08.2012, 15:44
Re: KillTimer problem in Fuel System - by [MWR]Blood - 20.08.2012, 15:54
Re: KillTimer problem in Fuel System - by Kenway - 20.08.2012, 15:55
Re: KillTimer problem in Fuel System - by [MWR]Blood - 20.08.2012, 15:58
Re: KillTimer problem in Fuel System - by Kenway - 20.08.2012, 16:13
Re: KillTimer problem in Fuel System - by [MWR]Blood - 20.08.2012, 18:04
Re: KillTimer problem in Fuel System - by Kenway - 20.08.2012, 18:34
Re: KillTimer problem in Fuel System - by Kenway - 20.08.2012, 23:59
Re: KillTimer problem in Fuel System - by Kenway - 21.08.2012, 18:31
Re: KillTimer problem in Fuel System - by Misiur - 21.08.2012, 19:02

Forum Jump:


Users browsing this thread: 2 Guest(s)