and when i get damaged(losing healths only) i can see my health at armour:90 and hp stays in 0
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
#define STATS_CLICK hp: %f - armour: %f
new string[400], string2[64],Float:health,Float:armour;
GetPlayerHealth(clickedplayerid,health);
GetPlayerArmour(clickedplayerid,armour);
format(string2, sizeof(string2), "Stats of %s", GetPName(clickedplayerid));
format(string, sizeof(string), "hp: %f - armour: %f" ,health,armour);
ShowPlayerDialog(playerid,100,DIALOG_STYLE_MSGBOX, string2, string, "Cancel", "");
return 1;
}