help value
#1

I have this command

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;
    }
Everything works great but the health value is 100.00000 how can i make it to be only 100?
Reply


Messages In This Thread
help value - by FireFox_ - 18.02.2010, 17:32
Re: help value - by FireFox_ - 19.02.2010, 12:17
Re: help value - by pyrodave - 19.02.2010, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)