03.09.2010, 06:19
It kinda does, but it does as the same time (not optional) many other things, which are unecaserry in your case.
That is why you should just use strcmp![Smiley](images/smilies/smile.png)
You could also do something like this though:
But as you see, that is way slower than just using strcmp (slower to write that is.. Dunno if it's faster to check each cell manually, but I think that's just what strcmp does)
That is why you should just use strcmp
![Smiley](images/smilies/smile.png)
You could also do something like this though:
pawn Код:
if( name[ 0 ] == "P" && name[ 1 ] == "u" && name[ 2 ] == "r" && name[ 3 ] == "p" && name[ 4 ] == "l" && name[ 5 ] == "e" && name[ 6 ] == "H" && name[ 7 ] == "a" && name[ 8 ] == "z" && name[ 9 ] == "e" )