Vehicle Health and Fuel
#3

Quote:
Originally Posted by Mugala
Посмотреть сообщение
you just have to remove one 0 from code, it's simple to divide it by 10.
format(predstring_p, sizeof(predstring_p), "Health: %.0f%", health_car/10);
Incorrect to an extent. A vehicle catches fire at 250HP so you might want to re-calculate so that HP percentage is measured between 250.0 hp and 1000. hp.
Reply


Messages In This Thread
Vehicle Health and Fuel - by KamilPolska - 27.05.2018, 22:45
Re: Vehicle Health and Fuel - by Mugala - 28.05.2018, 00:12
Re: Vehicle Health and Fuel - by Pottus - 28.05.2018, 02:46
Re: Vehicle Health and Fuel - by GTLS - 28.05.2018, 04:56
Re: Vehicle Health and Fuel - by Mugala - 28.05.2018, 11:06

Forum Jump:


Users browsing this thread: 1 Guest(s)