server unkown command??? with all..
#5

There are tons of tutorials about how to use ZCMD and also converting strcmp + strtok to ZCMD + sscanf.

You will need to change as the user above said.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/help", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");
        return 1;
    }
    return 0;
}
To
pawn Код:
CMD:help(playerid, params[])
{
    SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");
    return 1;
}
And NEVER inside any callback.
Reply


Messages In This Thread
server unkown command??? with all.. - by karolis1478 - 15.12.2012, 11:52
Re: server unkown command??? with all.. - by Windrush - 15.12.2012, 13:01
Re: server unkown command??? with all.. - by karolis1478 - 15.12.2012, 13:54
Re: server unkown command??? with all.. - by PRoleplay - 15.12.2012, 16:01
Re: server unkown command??? with all.. - by Konstantinos - 15.12.2012, 16:05

Forum Jump:


Users browsing this thread: 1 Guest(s)