/commands don't work ? - 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: /commands don't work ? (
/showthread.php?tid=309719)
/commands don't work ? -
MR,Mr - 08.01.2012
I can do "T" and chat! but when I do "/something" nothing happen's
It don't even say server unknown command ? any ideas ?
Re: /commands don't work ? -
Psymetrix - 08.01.2012
Try unloading all your filterscripts.
Re: /commands don't work ? -
naruto_hina - 09.01.2012
It happend to me, too .... You just got a filterscript with a wrong callback. In filterscript must be return 0; and in gamemode return 1;
Re: /commands don't work ? -
Konstantinos - 09.01.2012
Quote:
Originally Posted by naruto_hina
It happend to me, too .... You just got a filterscript with a wrong callback. In filterscript must be return 0; and in gamemode return 1;
|
First of all, he didn't mention of he is using strcmp or other command proccesor, like Dcmd or ZCMD.
However, OnPlayerCommandText Callback it returns a value (0) both. On Gamemode and FilterScript too.
@MR,Mr
The "T" Chat is OnPlayerText Callback, right. Make sure you have returned the correct values, otherwise it will be bugged. It sometimes happens!