ZCMD Help
#13

Quote:
Originally Posted by The Toni
Посмотреть сообщение
This is why I hate strcmp, but it's useful at times.

strcmp returns a false value if it's matching I think, I can't remember exactly if it's this way or the other way.

If you do what cessil said, it should work.
Returns
-1 if string1 comes before string2
1 if string1 comes after string2
0 if the strings are the same (for the matched length).

Quote:
Originally Posted by cessil
Посмотреть сообщение
I'm guessing you changed <name> to Billy_Macan, and like I said it's checking if they are a match, if you want the opposite use
pawn Код:
if(strcmp(playername, "<Name>", true))
That's why I recommended 0 != strcmp, instead of just removing the !
Reply


Messages In This Thread
ZCMD Help - by [UG]Scripter - 22.11.2010, 23:34
Re: ZCMD Help - by TheXIII - 22.11.2010, 23:37
Re: ZCMD Help - by iggy1 - 22.11.2010, 23:38
Re: ZCMD Help - by TheXIII - 22.11.2010, 23:39
Re: ZCMD Help - by [UG]Scripter - 23.11.2010, 00:25
Re: ZCMD Help - by Toni - 23.11.2010, 00:32
Re: ZCMD Help - by [UG]Scripter - 23.11.2010, 00:36
Re: ZCMD Help - by cessil - 23.11.2010, 00:38
Re: ZCMD Help - by [UG]Scripter - 23.11.2010, 00:45
Re: ZCMD Help - by TheXIII - 23.11.2010, 00:46
Re: ZCMD Help - by cessil - 23.11.2010, 00:53
Re: ZCMD Help - by Toni - 23.11.2010, 00:54
Re: ZCMD Help - by TheXIII - 23.11.2010, 01:11

Forum Jump:


Users browsing this thread: 1 Guest(s)