PAWNO Script Help
#2

No. Also you're in the wrong section.

GetPlayerHealth(playerid, &health)
playerid - The player you would like to store the health float to.
&health - The float you wan't store the health float to.

So you will use it like this.
pawn Код:
public OnPlayerSpawn(playerid) {
  new Float:Health; // Storing this variable!
  new string[23];
  GetPlayerHealth(playerid, Health);
  format(string, sizeof(string), "Your health is %0.2f!", Health);
  SendClientMessage(playerid, 0x330066AA, string);
  return 1;
}
Reply


Messages In This Thread
PAWNO Script Help - by VirSpectorX - 28.03.2010, 08:30
Re: PAWNO Script Help - by Carlton - 28.03.2010, 08:44
Re: PAWNO Script Help - by [HiC]TheKiller - 28.03.2010, 08:56
Re: PAWNO Script Help - by biltong - 29.03.2010, 12:47
Re: PAWNO Script Help - by aircombat - 29.03.2010, 13:02
Re: PAWNO Script Help - by biltong - 29.03.2010, 13:33
Re: PAWNO Script Help - by aircombat - 29.03.2010, 13:40
Re: PAWNO Script Help - by Seven_of_Nine - 11.04.2011, 16:05

Forum Jump:


Users browsing this thread: 2 Guest(s)