Fuel System - Help
#1

Hi All, I'm making a fuel system.

I have a "Fuel consumption" timer for all vehicles. When vehicle's fuel is out, it must stop the engine of this vehicle, but it stops all engines.

pawn Код:
public FuelConsumption(vehicleid)
{
    for(new i=0;i<MAX_VEHICLES;i++)
    {
    // bla bla...
        VehicleGas -= 1;
        if(VehicleGas[i] == 0) SetVehicleParamsEx(i, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective);
    // blaa..
    }
}
Some suggests?
Thanks you in advance

PD: Sorry for my bad english.
Reply


Messages In This Thread
Fuel System - Help - by luis_lpv_22 - 28.11.2011, 10:30
Re: Fuel System - Help - by Jake__ - 28.11.2011, 12:42
Respuesta: Fuel System - Help - by luis_lpv_22 - 28.11.2011, 13:20
Re: Fuel System - Help - by Unte99 - 28.11.2011, 13:32
Re: Fuel System - Help - by CONTROLA - 28.11.2011, 13:42
Re: Fuel System - Help - by Unte99 - 28.11.2011, 13:56

Forum Jump:


Users browsing this thread: 4 Guest(s)