Y_Commands - Problem
#1

Hello, I have a problem using Y_Commands with my commands. If I use any command, the OnPlayerCommandText returns "Unknown Command", but the command works perfectly.

pawn Код:
YCMD:help(playerid, params[], pHELPS)
{
    // player help

    return 1;
}
and

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    SendPlayerMessage(playerid, 0xFF0000FF, "Ops! O comando \"%s\" nгo existe.", cmdtext);
    return 1;
}
If I return 0 in callback, returns "Ops! O comando \"%s\" nгo existe." and "SERVER: Unknown Command.". But if I return 1, just return "Ops! O comando \"%s\" nгo existe." even when the command exists.

I'd like the message to be displayed only when the command doesn't exist.


Thanks and sorry from my bad English.
Reply


Messages In This Thread
Y_Commands - Problem - by SuperChock - 18.12.2011, 13:22
Re: Y_Commands - Problem - by Thresholdold - 18.12.2011, 13:25
Re: Y_Commands - Problem - by suhrab_mujeeb - 18.12.2011, 13:25
Re: Y_Commands - Problem - by Thresholdold - 18.12.2011, 13:30
Re: Y_Commands - Problem - by SuperChock - 18.12.2011, 14:02
Re: Y_Commands - Problem - by suhrab_mujeeb - 18.12.2011, 14:10

Forum Jump:


Users browsing this thread: 1 Guest(s)