[HELP] Please help setting fuel [REP +]
#4

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


Messages In This Thread
[HELP] Please help setting fuel [REP +] - by Luca12 - 17.03.2015, 17:40
Re: [HELP] Please help setting fuel [REP +] - by SWAT4 - 17.03.2015, 17:46
Re: [HELP] Please help setting fuel [REP +] - by Jefff - 17.03.2015, 17:48
Re: [HELP] Please help setting fuel [REP +] - by CalvinC - 17.03.2015, 17:49
Re: [HELP] Please help setting fuel [REP +] - by Luca12 - 17.03.2015, 18:18
Re: [HELP] Please help setting fuel [REP +] - by Jefff - 18.03.2015, 01:26
Re: [HELP] Please help setting fuel [REP +] - by fuckingcruse - 18.03.2015, 09:35
Re: [HELP] Please help setting fuel [REP +] - by CalvinC - 18.03.2015, 09:41
Re: [HELP] Please help setting fuel [REP +] - by Luca12 - 18.03.2015, 11:06
Re: [HELP] Please help setting fuel [REP +] - by Jefff - 18.03.2015, 16:29

Forum Jump:


Users browsing this thread: 1 Guest(s)