16.02.2018, 19:05
Well i just wanted to do something like 100.00000 and like, i already tried with %.5f but then the health wont get recognized and will be stuck at 0
new Float:health, str[64];
GetPlayerHealth(playerid, health);
format(str, sizeof(str), "Your health is %.5.", health);
SendClientMessage(playerid, str);
new Float:hp, string[50];
GetPlayerHealth(playerid,hp);
format(string, sizeof(string), "%d_%s", floatround(hp, floatround_round), PlayerName[playerid]);
SetPlayerName(playerid, string);
PHP код:
|
new Float:hp, string[50];
GetPlayerHealth(playerid,hp);
format(string, sizeof(string), "%.5f _ %s", hp, PlayerName[playerid]);
SetPlayerName(playerid, string);