Server Unknown CMD - 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 Unknown CMD (
/showthread.php?tid=368038)
Server Unknown CMD -
NinjaChicken - 12.08.2012
ok, basically my server is running for lets say 1 to 2 hours there was 7 of us playing and all of a sudden all the commands basically died everyone kept returing server unknown cmd and i was forced to restart the server this is happening alot lately and its annoying to restart the server when i have my players on, can someone please help me with this error?
Re: Server Unknown CMD - Riddy - 12.08.2012
Get the last command used and post it here.
Re: Server Unknown CMD -
NinjaChicken - 12.08.2012
public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;
}
i have this should it be return 0?
Re: Server Unknown CMD -
Mark™ - 12.08.2012
Quote:
Originally Posted by NinjaChicken
public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;
}
i have this should it be return 0?
|
Your OnPlayerCommandText is empty here, you should remove that callback completely, if you're using zcmd or y_commands as your command processor.
Re: Server Unknown CMD -
NinjaChicken - 12.08.2012
could that be the massive error that plagues my server?
Re: Server Unknown CMD -
iggy1 - 12.08.2012
If you load the mode and your commands work, and then they just stop working you may have accessed an array out of bounds at runtime. This may also stop your timers working and also more bad things will happen.
Run your mode with the
crashdetect plugin to see if/where you have messed up.
PS, Your server does
not need to crash for the plugin to pick up on these errors.
Re: Server Unknown CMD -
Mark™ - 12.08.2012
Quote:
Originally Posted by NinjaChicken
could that be the massive error that plagues my server?
|
How would we know unless you try and post the results here ?
Re: Server Unknown CMD -
NinjaChicken - 12.08.2012
but the call back was the error?
Re: Server Unknown CMD -
NinjaChicken - 12.08.2012
anyone?