27.07.2013, 00:11
http://pastebin.com/NKvGABJU
See line 18 and 19. The if() statements always evaluate as true (both of them - which is impossible). It fixes if I prefix them with Float: like so:
Other than using the Float: tag, how can I fix this? They print out fine as floats in printf, they ARE floats, they have float tags, so why do I need to put another Float: tag? :/
P.S. This isn't a script I'm making to use, I'm just playing around.
See line 18 and 19. The if() statements always evaluate as true (both of them - which is impossible). It fixes if I prefix them with Float: like so:
pawn Код:
if(Float:PlayerStats[playerid][stat] > 100) PlayerStats[playerid][stat] = 100; // First line in question
if(Float:PlayerStats[playerid][stat] < 0) PlayerStats[playerid][stat] = 0; // Second line in question
P.S. This isn't a script I'm making to use, I'm just playing around.