Commands are fucked
#8

The thing is, you don't put the zcmds under OnPlayerCommandText.
Example:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // all
        return 1;
    }
    return 0;
}
You can't use the following under OnPlayerCommandText
pawn Код:
CMD:test(playerid, params[])
{
    SendClientMessage(playerid, -1, "test");
    return 1;
}
Example of what NOT to do:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    CMD:test(playerid, params[])
    {
    SendClientMessage(playerid, -1, "test");
    return 1;
    }
return 1;
}
If you put the CMD:test under OnPlayerCommandText, it doesn't work, because you can only put strcmp commands under OnPlayerCommandText.
zcmd can be put anywhere on the script, just do it like I showed you.
Hope I helped!
Reply


Messages In This Thread
Commands are fucked - by arjanforgames - 12.07.2013, 20:32
Re: Commands are fucked - by detter - 12.07.2013, 20:50
Re: Commands are fucked - by arjanforgames - 12.07.2013, 20:52
Re: Commands are fucked - by Chris1337 - 12.07.2013, 20:54
Re: Commands are fucked - by arjanforgames - 12.07.2013, 20:56
Re: Commands are fucked - by Vince - 12.07.2013, 21:00
Re: Commands are fucked - by arjanforgames - 12.07.2013, 21:06
Re: Commands are fucked - by JimmyCh - 12.07.2013, 21:15
Re: Commands are fucked - by arjanforgames - 12.07.2013, 21:18
Re: Commands are fucked - by Sandiel - 12.07.2013, 21:22

Forum Jump:


Users browsing this thread: 1 Guest(s)