09.07.2012, 18:37
You're using GetVehicleHealth wrong.
Here, I also added the 100% part:
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);

