damage bar
#3

You're using GetVehicleHealth wrong.

Here, I also added the 100% part:

pawn Код:
new Float:VehicleHealth;
        GetVehicleHealth(vehicleid, VehicleHealth);
        format(damage_string, 50, "Damage: %.0f%%", floatdiv(VehicleHealth, 10));
        //%.0f will show float values with 0 decimal places. %% makes the per cent sign
        TextDrawSetString(Damage, damage_string);
Reply


Messages In This Thread
damage bar - by SomebodyAndMe - 09.07.2012, 18:30
Re: damage bar - by Jarok - 09.07.2012, 18:33
Re: damage bar - by coole210 - 09.07.2012, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)