Quote:
Originally Posted by YamiKaitou
PHP Code:
if (equal(player1,""))
// stuff
PHP Code:
if (player1[0] == "\0")
// stuff
The first method should work fine. The second one depends on what your escape character is. I think it can also equal 0, but I am not sure.
|
The second won't compile. You would have to use:
Code:
if(player1[0] == '\0')
or
I prefer the latter because the escape character can be changed using compiler options, but the null character is still 0.
__________________