Little error. Having this many times
#9

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by biltong
Seriously, learn to use brackets.
Not only that, he should also learn some basics like i already mentioned before.

Quote:
Originally Posted by bartje01
pawn Код:
if (strcmp("/policetolsv", cmdtext, true, 10) == 0)
{
  // other code
}
/policetolsv has 12 characters, not 10.

So this would be correct:
pawn Код:
if(strcmp("/policetolsv", cmdtext, true, 12) == 0)
{
  // other code
}
or:
pawn Код:
if(strcmp("/policetolsv", cmdtext, true) == 0)
{
  // other code
}
Thank you for showing me what that number means, lol I didn't know that. ZCMD has made me lazy -.-
Reply


Messages In This Thread
Little error. Having this many times - by bartje01 - 15.03.2010, 16:25
Re: Little error. Having this many times - by Correlli - 15.03.2010, 16:27
Re: Little error. Having this many times - by bartje01 - 15.03.2010, 16:32
Re: Little error. Having this many times - by Sascha - 15.03.2010, 16:34
Re: Little error. Having this many times - by biltong - 15.03.2010, 16:34
Re: Little error. Having this many times - by bartje01 - 15.03.2010, 16:36
Re: Little error. Having this many times - by biltong - 15.03.2010, 16:39
Re: Little error. Having this many times - by Correlli - 15.03.2010, 16:49
Re: Little error. Having this many times - by biltong - 15.03.2010, 17:14

Forum Jump:


Users browsing this thread: 8 Guest(s)