11.12.2011, 00:15
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 :
This is what i've tryied :
pawn Код:
GetVehicleHealth(vehicleid, domm);
domm1 = floatround(100 - 100*((domm/10)-25)/75));