Float problem
#1

Hello everyone today i am confused with a task i have fuel system in my server the max fuel is 100 and its working perfect but i want to make random fuel for vehicles like 15-80% fuel example if you sit in a car the car have 36 fuel and if you sit in another car the car must have different amount of fuel like 40% so i am confused with make that system here is my code if you can help me to make it.

pawn Code:
// MAX-Fuel
#define FuelMax 100.0
pawn Code:
new Float:Gas[MAX_VEHICLES] = {FuelMax, ...}; // This is for give fuel to vehicles
Thanks for help in advance.
Reply


Messages In This Thread
Float problem - by IceBilizard - 13.10.2014, 05:44
Re: Float problem - by AnnaSB - 13.10.2014, 07:57
Re: Float problem - by IceBilizard - 14.10.2014, 04:14
Re: Float problem - by AngeloBrand98 - 05.09.2017, 20:25
Re: Float problem - by AngeloBrand98 - 05.09.2017, 20:27

Forum Jump:


Users browsing this thread: 2 Guest(s)