26.03.2011, 18:24
Hi guys...
I want to show the damage/health of a car in % and that's what I have:
when I format it into a text it always shows "0%" however it should show 100%
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);