View Single Post
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-14-2004 , 10:45  
Reply With Quote #6

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.
Johnny got his gun is offline