22.02.2010, 23:37
https://sampwiki.blast.hk/wiki/Floatround
new Float:health;
new Float:armour;
GetPlayerHealth(playerid, floatround(health, floatround_round));
GetPlayerHealth(playerid, floatround(armour, floatround_round));
format(string, sizeof(string), "Health: %i \nArmour: %i", health, armour);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Player Stats", string, "Ok", "Cancel");
Might work, not sure I don't really script XD.
or could be
new Float:health;
new Float:armour;
GetPlayerHealth(playerid, health);
GetPlayerHealth(playerid, armour);
format(string, sizeof(string), "Health: %i \nArmour: %i", floatround(health, floatround_round), floatround(armour, floatround_round);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Player Stats", string, "Ok", "Cancel");
new Float:health;
new Float:armour;
GetPlayerHealth(playerid, floatround(health, floatround_round));
GetPlayerHealth(playerid, floatround(armour, floatround_round));
format(string, sizeof(string), "Health: %i \nArmour: %i", health, armour);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Player Stats", string, "Ok", "Cancel");
Might work, not sure I don't really script XD.
or could be
new Float:health;
new Float:armour;
GetPlayerHealth(playerid, health);
GetPlayerHealth(playerid, armour);
format(string, sizeof(string), "Health: %i \nArmour: %i", floatround(health, floatround_round), floatround(armour, floatround_round);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Player Stats", string, "Ok", "Cancel");