22.02.2010, 23:13
Im making a stats thing with dialogs,
This is my code:
And on the dialog it dosent show as 100, It shows as 100.000000, Or something like that, How do i just make it to 100?
This is my code:
pawn Код:
new Float:health;
new Float:armour;
GetPlayerHealth(playerid, health);
GetPlayerHealth(playerid, armour);
format(string, sizeof(string), "Health: %f \nArmour: %f", health, armour);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Player Stats", string, "Ok", "Cancel");