28.03.2010, 08:44
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.
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;
}