Annoying errors..
#8

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
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" )
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)
Reply


Messages In This Thread
Annoying errors.. - by DiddyBop - 02.09.2010, 22:11
Re: Annoying errors.. - by LarzI - 02.09.2010, 22:14
Re: Annoying errors.. - by DiddyBop - 02.09.2010, 22:25
Re: Annoying errors.. - by LarzI - 02.09.2010, 22:40
Re: Annoying errors.. - by DiddyBop - 02.09.2010, 22:43
Re: Annoying errors.. - by Toni - 02.09.2010, 22:45
Re: Annoying errors.. - by DiddyBop - 02.09.2010, 22:59
Re: Annoying errors.. - by LarzI - 03.09.2010, 06:19

Forum Jump:


Users browsing this thread: 1 Guest(s)