Integer == null?
#3

Integers are never null.

You can check if a string is null, the null-terminator is a backslash and then a zero ('\0'), an example of it:

pawn Код:
new str[2];
if(str[1] == '\0' || str[0] == '\0') return print("null");
Reply


Messages In This Thread
Integer == null? - by TheXIII - 15.05.2011, 14:23
Re: Integer == null? - by Raimis_R - 15.05.2011, 14:35
Re: Integer == null? - by __ - 15.05.2011, 14:45
Re: Integer == null? - by Skylar Paul - 15.05.2011, 14:46
Re: Integer == null? - by TheXIII - 15.05.2011, 14:52
Re: Integer == null? - by __ - 15.05.2011, 14:53
Re: Integer == null? - by DRIFT_HUNTER - 15.05.2011, 15:22
Re: Integer == null? - by Sinner - 15.05.2011, 15:27

Forum Jump:


Users browsing this thread: 1 Guest(s)