Flooding a Message.
#10

Quote:
Originally Posted by ******
Посмотреть сообщение
You probably need to show your "ReFill" function.
I don't think that there is a problem in this code.

Код:
}

forward ReFill(playerid);
public ReFill(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) return StopRefueling(playerid);
		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
Flooding a Message. - by TheSnaKe - 14.12.2014, 11:00
Re: Flooding a Message. - by Ryz - 14.12.2014, 11:18
Re: Flooding a Message. - by TheSnaKe - 14.12.2014, 14:19
Re: Flooding a Message. - by DaniceMcHarley - 14.12.2014, 15:12
Re: Flooding a Message. - by SickAttack - 14.12.2014, 15:15
Re: Flooding a Message. - by DaniceMcHarley - 14.12.2014, 15:20
Re: Flooding a Message. - by SickAttack - 14.12.2014, 15:48
Re: Flooding a Message. - by TheSnaKe - 14.12.2014, 19:48
Re: Flooding a Message. - by Abagail - 14.12.2014, 23:35
Re: Flooding a Message. - by TheSnaKe - 15.12.2014, 10:27

Forum Jump:


Users browsing this thread: 3 Guest(s)