Server returns all commands as unknown :(
#1

Hello,

I am using YCMD command processor.My server is returning all the commands as !success.

Here is the code

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
        new str[128];
        format(str, sizeof(str),""CBLUE"Comamnd not exists("cred"%s"CBLUE")", cmdtext);
        SCM(playerid, -1, str);
        TextDrawShowForPlayer(playerid, Badchat);
        SetTimerEx("HideBadChat", 3000, false, "i", playerid);
        GameTextForPlayer(playerid, "Command not exist", 4000, 5);
    }
    return 1;
}
it shows it for all the commands even working or not i mean exists.

Could anybody check whats wrong?
Reply
#2

SendCommandText returns true?
Reply
#3

Quote:
Originally Posted by mastermax7777
Посмотреть сообщение
SendCommandText returns true?
Sorry what you mean?


I mean to say that if a command exists and i use it it shows all the content which it should show for a non existing command.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)