18.02.2010, 17:32
I have this command
Everything works great but the health value is 100.00000 how can i make it to be only 100?
pawn Код:
if(strcmp(cmdtext, "/stats", true) == 0)
{
new Float:health, Float:armour;
GetPlayerHealth(playerid, health);
GetPlayerArmour(playerid, armour);
format(s, sizeof(s),"Health: %f | Armour: %f\nScore: %d | Money: %d", health, armour, GetPlayerScore(playerid), GetPlayerMoney(playerid));
ShowPlayerDialog(playerid, STATS_DIALOG, DIALOG_STYLE_MSGBOX,"Your Stats",s,"Done","Cancel");
return 1;
}