Problem with OnPlayerCommandText and FS's - 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: Problem with OnPlayerCommandText and FS's (
/showthread.php?tid=99345)
Problem with OnPlayerCommandText and FS's -
clavador - 27.09.2009
Hi.
I have 4 different Fs that use the command OnPlayerCommandText.
The problem is that I can't use some of the commands from one filterscript when another one is loaded.
I have to unload like 3 fs to get 1 working, but maybe the 2nd Fs dont need to unload any of the others at all to work.
I have in every Fs set return 1 for the OnPlayerCommandText (Except the gamemode, but I tried setting it to always 1, too).
I also switched the loading order in the server.cfg.
What could be the problem or how can I solve this?
Thank you!
Re: Problem with OnPlayerCommandText and FS's -
brett7 - 27.09.2009
put everything in one fs
Re: Problem with OnPlayerCommandText and FS's -
clavador - 27.09.2009
Okey, but is there a logical solution to this?
Sure I can do that, but it will be a pain in the ass (whats the use of beign able to load 16 Fs?).
Re: Problem with OnPlayerCommandText and FS's -
clavador - 27.09.2009
Well... I've found the solution.
Now I can have like 4 Fs and use the OnPlayerCommandText without any problems..
The only thing I had to do was to remove the OnPlayerCommandText Callback from one of the Fs that didnt have anything inside it.
Now the others have the commands and they return 1 & 0 depending on the case.
Thanks...