Quote:
Originally Posted by Vince
pawn Код:
new Float:armour = GetPlayerArmour(playerid, armour);
Doesn't that seem redundant? GetPlayerAmour (and by extension GetPlayerHealth) itself only returns 1 or 0 depending on whether the player is connected. The actual armour value is stored in the variable that is passed by reference (that is: the variable between the brackets).
I just tested this statement and I find it rather odd that it does not give a tag mismatch warning, even though it probably should.
|
I don't get what you mean...
If I was not using:
pawn Код:
new Float:armour = GetPlayerArmour(playerid, armour);
Only difference that would be done is
pawn Код:
new Float:armour;
GetPlayerArmour(playerid, armour);