17.03.2015, 17:49
Use the vehicle's ID, not the model id.
Like this.
You were trying to pass on the model id as the vehicle id, which would just be the same as:
Which wont work.
pawn Код:
if(IsATruck(o)) Fuel[o] = 100.00;
else if(IsABus(o)) Fuel[o] = 80.00;
else if(IsABike(o)) Fuel[o] = 15.00;
You were trying to pass on the model id as the vehicle id, which would just be the same as:
pawn Код:
GetVehicleModel(GetVehicleModel(vehicleid))