18.12.2011, 13:22
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.
and
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.
pawn Код:
YCMD:help(playerid, params[], pHELPS)
{
// player help
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
SendPlayerMessage(playerid, 0xFF0000FF, "Ops! O comando \"%s\" nгo existe.", cmdtext);
return 1;
}
I'd like the message to be displayed only when the command doesn't exist.
Thanks and sorry from my bad English.