Server returns all commands as unknown :( - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server returns all commands as unknown :( (
/showthread.php?tid=415879)
Server returns all commands as unknown :( -
Black Wolf - 15.02.2013
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?
Re: Server returns all commands as unknown :( -
mastermax7777 - 15.02.2013
SendCommandText returns true?
Re: Server returns all commands as unknown :( -
Black Wolf - 15.02.2013
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.