02.04.2015, 17:18
stock GetVehDamage(playerid) should return the Float:health instead of 1.It should look like this
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 health;
}