Calculating problem
#1

Hi guys...
I want to show the damage/health of a car in % and that's what I have:
pawn Код:
new Float:vhp, vhp2;
GetVehicleHealth(v, vhp);
vhp = (100 / 1000 * vhp);
vhp2 = floatround(vhp, floatround_round);
when I format it into a text it always shows "0%" however it should show 100%
Reply


Messages In This Thread
Calculating problem - by Sascha - 26.03.2011, 18:24
Re: Calculating problem - by armyoftwo - 26.03.2011, 19:08
Re: Calculating problem - by Sascha - 26.03.2011, 19:10
Re: Calculating problem - by Mike Garber - 26.03.2011, 19:19
Re: Calculating problem - by armyoftwo - 26.03.2011, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)