Float Issues.
#3

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);
Reply


Messages In This Thread
Float Issues. - by Prokill911 - 29.05.2015, 12:14
Re: Float Issues. - by Vince - 29.05.2015, 12:19
Re: Float Issues. - by Prokill911 - 29.05.2015, 12:31
Re: Float Issues. - by rappy93 - 29.05.2015, 14:23
Re: Float Issues. - by Prokill911 - 29.05.2015, 15:08

Forum Jump:


Users browsing this thread: 3 Guest(s)