02.04.2015, 17:00
Hello, I've been working on a vehicle damage textdraw and so some reason it doesn't put the health in.. it shows as Damage: 0.000000... I can't see what i've done or gone wrong here, would love for some help!
pawn Код:
public OnPlayerUpdate(playerid)
{
new ddamage[16];
format(ddamage, sizeof(ddamage), "damage: %0.f", GetVehDamage(playerid));
TextDrawSetString(DamageTD, ddamage);
}
stock GetVehDamage(playerid)
{
new Float:health;
new vehid = GetPlayerVehicleID(playerid);
GetVehicleHealth(vehid, health);
return 1;
}