Non-working command
#3

Classic strtok mistake xD ^^

Change:
pawn Код:
if (strcmp("/spyspec", cmdtext, true, 10) == 0)
to
pawn Код:
if(strcmp(cmd, "/spyspec", true) == 0)
I hope you have defined
pawn Код:
new cmd[256], idx;
and
pawn Код:
cmd = strtok(cmdtext, idx);
under
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
Reply


Messages In This Thread
Non-working command - by Packer5 - 01.04.2010, 11:13
Re: Non-working command - by [MWR]Blood - 01.04.2010, 11:17
Re: Non-working command - by Last_Stand_Guardian - 01.04.2010, 11:18
Re: Non-working command - by Packer5 - 01.04.2010, 11:41

Forum Jump:


Users browsing this thread: 3 Guest(s)