Problem with OnPlayerCommandText and FS's
#1

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!
Reply
#2

put everything in one fs
Reply
#3

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?).

Reply
#4

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)