Problem's with fuel
#1

I have problem's with fuel, it's not seting fuel. not even to one vehicle.

Код:
public OnVehicleSpawn(vehicleid)
{
	new vID = GetVehicleModel(vehicleid);
	if(Car(vID))
	{
	Fuel[vehicleid] = 50;
	}
	if(Bike(vID))
 	{
 	Fuel[vehicleid] = 30;
 	}
	if(HeavyVehicles(vID))
	{
	Fuel[vehicleid] = 200;
	}
	if(Boat(vID))
	{
	Fuel[vehicleid] = 250;
	}
	if(Airplane(vID))
	{
	Fuel[vehicleid] = 1000;
	}
	HelpFuel[vehicleid] = 9;
	Engine[vehicleid] = 0;
	Lights[vehicleid] = 0;
	return 1;
}
I made command

Код:
CMD:fueltest(playerid,params[])
{
	new vID = GetPlayerVehicleID(playerid);
	Fuel[vID] = 50;
	return true;
}
and it's seting, but problem is that i have to type that command 2 times..

I need help with this, to make setting fuel right.

Sorry for my bad english, I hope that you have understand me.
Reply


Messages In This Thread
Problem's with fuel - by ivanVU - 26.09.2012, 18:27
Re: Problem's with fuel - by ivanVU - 27.09.2012, 18:37
Re: Problem's with fuel - by ikbenremco - 27.09.2012, 19:28
Re: Problem's with fuel - by ivanVU - 27.09.2012, 19:30
Re: Problem's with fuel - by zDevon - 27.09.2012, 22:09
Re: Problem's with fuel - by mamorunl - 28.09.2012, 00:04
Re: Problem's with fuel - by ivanVU - 29.09.2012, 14:47
Re: Problem's with fuel - by xMCx - 29.09.2012, 14:59
Re: Problem's with fuel - by ivanVU - 29.09.2012, 15:17
Re: Problem's with fuel - by ivanVU - 29.09.2012, 20:52

Forum Jump:


Users browsing this thread: 2 Guest(s)