Health & Armour problem
#9

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");
Reply


Messages In This Thread
Health & Armour problem - by Torran - 22.02.2010, 23:13
Re: Health & Armour problem - by Fedee! - 22.02.2010, 23:18
Re: Health & Armour problem - by bajskorv123 - 22.02.2010, 23:20
Re: Health & Armour problem - by CJ101 - 22.02.2010, 23:21
Re: Health & Armour problem - by Fedee! - 22.02.2010, 23:22
Re: Health & Armour problem - by bajskorv123 - 22.02.2010, 23:24
Re: Health & Armour problem - by Fedee! - 22.02.2010, 23:31
Re: Health & Armour problem - by Torran - 22.02.2010, 23:34
Re: Health & Armour problem - by gotenks918 - 22.02.2010, 23:37
Re: Health & Armour problem - by Torran - 22.02.2010, 23:37
Re: Health & Armour problem - by gotenks918 - 22.02.2010, 23:38
Re: Health & Armour problem - by Joe Staff - 23.02.2010, 00:42
Re: Health & Armour problem - by Torran - 23.02.2010, 09:18

Forum Jump:


Users browsing this thread: 1 Guest(s)