Float Issues.
#1

Fixed.
Thanks to below help.
Reply
#2

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.
Reply
#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
#4

This is the correct way :

PHP код:
new Float:armour;
GetPlayerArmour(playeridarmour); 
Reply
#5

Quote:
Originally Posted by rappy93
Посмотреть сообщение
This is the correct way :

PHP код:
new Float:armour;
GetPlayerArmour(playeridarmour); 
I feel like an idiot -.-
The rest of it was perfect an that one little bit fuxed me over -.- Q_Q
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)