Little Problem
#4

Quote:
Originally Posted by ۞●•λвнiиаv•●۞
in this line
pawn Код:
if(strcmp(cmd, "/help", true, 10) == 0)
change it to -
pawn Код:
if(strcmp(cmd, "/help", true) == 0)

Yes, it is that line. But he is comparing the wrong strings. It should be
pawn Код:
if(strcmp(cmdtext, "/help", true) == 0)
since OnPlayerCommandText passes cmdtext

And this part of the code
pawn Код:
new idx;
    new cmd[256];
    cmd=strtok(cmdtext,idx);
is completly unnesesary
Reply


Messages In This Thread
Little Problem - by DiEx - 13.07.2009, 14:33
Re: Little Problem - by woot - 13.07.2009, 14:40
Re: Little Problem - by abhinavdabral - 13.07.2009, 15:03
Re: Little Problem - by dice7 - 13.07.2009, 15:07
Re: Little Problem - by abhinavdabral - 13.07.2009, 15:10

Forum Jump:


Users browsing this thread: 1 Guest(s)