13.03.2015, 00:04
You have completely failed in that script.
The way you made /refuel command will restore fuel to you and to everyone else who is currently in a vehicle, driver seat and not refuelling. Even after using the restore you will need to start the vehicle engine manually (SetVehicleParamsEx).
Also I see you are using fuel[playerid] in one place and fuel[vid] in another.
This cannot happen, it will simply cause run time errors and problems.
Change your script to use either fuel[playerid] or fuel[vid] and then I will be able to help you.
The way you made /refuel command will restore fuel to you and to everyone else who is currently in a vehicle, driver seat and not refuelling. Even after using the restore you will need to start the vehicle engine manually (SetVehicleParamsEx).
Also I see you are using fuel[playerid] in one place and fuel[vid] in another.
This cannot happen, it will simply cause run time errors and problems.
Change your script to use either fuel[playerid] or fuel[vid] and then I will be able to help you.