vehicle fuel help
#1

just to the point, is there something wrong with my code ?
pawn Код:
public FuelUpdate(){
    for(new i = 1;i<MAX_VEHICLES;i++){
        if(GetVehicleModel(i)){
            new engine,lights,alarm,doors,bonnet,boot,objective;
            GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
            if(engine == 1 && !IsVIPcar(i) || !IsASepedah(GetVehicleModel(i)) || !isGarbageCar(i) || !isDMVCar(i)){
                if(VehicleFuel[i] > 0) VehicleFuel[i]--;
                else SetVehicleParamsEx(i,0,lights,alarm,doors,bonnet,boot,objective);
            }
        }
    }
}
i tried to make some vehicle from script have infinite fuel, but the vehicle i wanted infinite fuel, they keep their fuel decreased,

sorry for bad english ..
Reply


Messages In This Thread
vehicle fuel help - by SMW - 24.06.2013, 14:50
Re: vehicle fuel help - by SMW - 24.06.2013, 15:06
Re: vehicle fuel help - by horsemeat - 24.06.2013, 15:41
Re: vehicle fuel help - by Pillhead2007 - 24.06.2013, 17:00

Forum Jump:


Users browsing this thread: 1 Guest(s)