percentage
#1

im trying to do a simple percentage of damage a vehicle have, but it always return 0% when no damage (correct), but at the moment it get a damage, it return 100%, and when it take in fire it return 200%.

This is what i've tryied :
pawn Код:
GetVehicleHealth(vehicleid, domm);
domm1 = floatround(100 - 100*((domm/10)-25)/75));
Reply


Messages In This Thread
percentage - by gagnier91 - 11.12.2011, 00:15
Re: percentage - by MP2 - 11.12.2011, 00:20
Re : percentage - by gagnier91 - 11.12.2011, 00:38
Re: percentage - by MP2 - 11.12.2011, 00:55
Re : percentage - by gagnier91 - 11.12.2011, 00:58

Forum Jump:


Users browsing this thread: 1 Guest(s)