SA-MP Forums Archive
Gas Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gas Problem (/showthread.php?tid=600698)



Gas Problem - Adrianos - 11.02.2016

I have a problem with gas at car . When i open the server all cars are fuel 0 ! What is the problem ? How fix it ?


Re: Gas Problem - ikey07 - 11.02.2016

under OnGameModeInit add

for(new i; i < sizeof(YOUR_CARS_AMOUNT); i++)
{
YOUR_GAS_VARIABLE[i] = 100;
}

OR at the top of the script


new YOUR_GAS_VARIABLE[YOUR_CARS_AMOUNT] = {100,...};


Re: Gas Problem - Adrianos - 11.02.2016

thanks