15.05.2011, 14:45
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:
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");