Fuel error
#3

Under OnGameModeInit should be the above code:

pawn Код:
public OnGameModeInit()
{
        for(new v = 0; v < MAX_VEHICLES; v++)
    {
        if(Cars(v))
        {
            VehicleFuel[v] = 100;
        }
        if(Bikes(v))
        {
            VehicleFuel[v] = 999;
        }
    }
}
Ofc that you don't have to use those Ifs Its just a better RP situation. If you won't check Bikes then they will have fuel too. Btw you probably don't have the Cars & Bikes function so i recommand creating them.
Reply


Messages In This Thread
Fuel error - by MrCallum - 21.05.2016, 14:14
Re: Fuel error - by luke49 - 21.05.2016, 14:18
Re: Fuel error - by maximthepain - 21.05.2016, 14:23
Re: Fuel error - by MrCallum - 21.05.2016, 14:30
Re: Fuel error - by maximthepain - 21.05.2016, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)