SERVER: Unknown Command on every GameMode command. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SERVER: Unknown Command on every GameMode command. (
/showthread.php?tid=277592)
SERVER: Unknown Command on every GameMode command. -
Kyle_Olsen - 18.08.2011
I get the "SERVER: Unknown Command" error when I try to do a gamemode based command (made using zcmd).
I have tried disabling all filterscripts, same error still happened.
It did not happen until I uploaded my script the last time, but I have tried commenting out every line I thought was new and the error still happened.
Does anyone know why this may be happening?
EDIT:
On further inspection, I figured nothing after the ShowPlayerDialog in OnPlayerConnect are executed for players with a higher ID than 0. Also, OnDialogResponse does not work for them.
Re: SERVER: Unknown Command on every GameMode command. -
Pinguinn - 18.08.2011
You probably forgot somewhere to close with return 1;
Re: SERVER: Unknown Command on every GameMode command. -
THE_KNOWN - 18.08.2011
anything under "OnRconCommand" callback?
Re: SERVER: Unknown Command on every GameMode command. -
sleepysnowflake - 18.08.2011
If you have included ZCMD then it won't work because ZCMD cancels strcmp commands.
Re: SERVER: Unknown Command on every GameMode command. -
Kyle_Olsen - 18.08.2011
I have checked most parts of my script, but can't find anywhere return 1 is forgotten.
There is nothing under the OnRconCommand callback.
I don't use strcmp at all.