Quote:
Originally Posted by SkyFlare
Do you think this would work?
PHP Code:
GetPlayerHealthEx(playerid, &Float:HpAmount)
{
HpAmount = Player[playerid][Health];
}
in theory this would be how i use it
PHP Code:
new Float:healthdying;
GetPlayerHealthEx(playerid, healthdying);
|
Well, HpAmount = Player[playerid][Health]; means that you are setting HPAmount value to Player[playerid][Health]. If you want to change Player[playerid][Health] value (you set player health value to the value of HpAmount) use this:
PHP Code:
Player[playerid][Health] = HpAmount;