26.11.2011, 16:08
try this and find out yourself:
if your hp is 99,5949123 '%f' will print you 99,5949... otherwise %.2f will print you 99,59.
^ posted in the same time, heehe
pawn Код:
public OnPlayerSpawn(playerid)
{
new
Float: gHP,
string[32]
;
GetPlayerHealth(playerid, gHP);
format(string, sizeof(string), "HP: %f %.2f", gHP, gHP);
SendClientMessage(playerid, ~1, string);
return 1;
}
^ posted in the same time, heehe