Quote:
Originally Posted by Scarzzurs
think?
I will have to test that then.... i just always thought it worked that way, lol
Scarzzurs
|
The difference is huge. like night and day :-)
Code:
for (new i = -1; i < 2; i++) {
if (i)
server_print("%d is true", i)
else
server_print("%d is false", i)
}
generates this output:
Quote:
-1 is true
0 is false
1 is true
|
that's why I generally suggest natives should return 0 when they do not succeed. Error codes -1 and such is useless.