Quote:
Originally Posted by SharpenBlade
Well, then I think your code could work.
PHP Code:
GetPlayerHealthEx(playerid) return Player[playerid][Health];
GetPlayerArmorEx(playerid) return Player[playerid][Armor];
SetPlayerHealthEx(playerid, Float:HpAmount) return Player[playerid][Health] = HpAmount;
SetPlayerArmorEx(playerid, Float:ArmorAmount) return Player[playerid][Armor] = ArmorAmount;
|
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);