strcmp problem...
#5

You didnt do anything wrong.
pawn Код:
strcmp("text1", "text1") // this will return 0 (the 2 strings compare)
strcmp("text1", "text2") // this will return 1 (the 2 strings arent the same)

!strcmp("text1", "text1") // this will return 1 (NOTE the '!')
!strcmp("text1", "text2") // this will return 0 (NOTE the '!')
Reply


Messages In This Thread
strcmp problem... - by knackworst - 16.10.2011, 14:15
Re: strcmp problem... - by DaRkAnGeL[NBK] - 16.10.2011, 14:16
Re: strcmp problem... - by Wesley221 - 16.10.2011, 14:21
Re: strcmp problem... - by knackworst - 16.10.2011, 14:29
Re: strcmp problem... - by Wesley221 - 16.10.2011, 16:37
Re: strcmp problem... - by SuperViper - 16.10.2011, 17:53

Forum Jump:


Users browsing this thread: 1 Guest(s)