[help] STRCMP
#3

Quote:
Originally Posted by Jefff
Посмотреть сообщение
before
pawn Код:
if(strcmp("/retirar", cmdtext, true) == 0)
must be
pawn Код:
cmd = strtok(cmdtext,idx);
then
pawn Код:
if(strcmp("/retirar", cmd, true) == 0)
or without strtok

pawn Код:
if(strcmp("/retirar", cmdtext, true, 8) == 0) // set cmd lenght ("/retirar" - 8 chars)
Thanks. The problem was the Lenght "8".
Reply


Messages In This Thread
[help] STRCMP - by Hayden_Almeida - 08.12.2015, 00:30
Re: [help] STRCMP - by Jefff - 08.12.2015, 00:38
Re: [help] STRCMP - by Hayden_Almeida - 08.12.2015, 01:04

Forum Jump:


Users browsing this thread: 1 Guest(s)