Is 16 filterscripts the max that can load?.
#1

I noticed that i can only put 16 filterscripts if i put more in the line filterscript in server.cfg i'll start to get unable to load filterscript. Is there something you need to do if you exceed 16 filterscripts?. Or is 16 the maximum possible number of filterscripts?.
Reply
#2

Yes, you can only have 16 filterscripts. You can see that limit in this page:
https://sampwiki.blast.hk/wiki/Limits

You could try "attaching" the filterscript code in your gamemode code, for example if a filterscript is a command, you can directly copy & paste that command in your gamemode. Or remove un-used filterscripts.
Reply
#3

Quote:
Originally Posted by admantis
Посмотреть сообщение
Yes, you can only have 16 filterscripts. You can see that limit in this page:
https://sampwiki.blast.hk/wiki/Limits

You could try "attaching" the filterscript code in your gamemode code, for example if a filterscript is a command, you can directly copy & paste that command in your gamemode. Or remove un-used filterscripts.
Is the the limit going to be raised in a recent update or you do not know?.
Reply
#4

No one knows except the developers of SA:MP.
Reply
#5

Quote:
Originally Posted by Red_Dragon.
Посмотреть сообщение
No one knows except the developers of SA:MP.
Here...

Reply
#6

If you need 16 filterscripts your not coding correctly particularly if it's a gamemode you shouldn't have any filterscripts in any production script unless there is good reason for it such as missions in a development state I can't see the need for more than a few filterscripts anyways.

You need to take a look at how your doing things because virtually any FS can be made into an include using hooking I get the feeling your taking a modular approach by keeping different parts of your code separate but your method is wrong by trying to use many filterscripts.

The solution is very convenient however use YSI hooking https://sampforum.blast.hk/showthread.php?tid=166016 it's probably the fastest and by far the easiest way to convert a FS into a include just by compiling with the y_hooks include and switch your public functions in the following manner will give the same results as a FS.

(Note: You'll see need to add the include into your gamemode - #include <myinclude>
pawn Код:
public OnGameModeInit() {}

hook OnGameModeInit() {}
I don't see how much more anyone could ask for with a system like this and I think this pretty much sums up your problem as there is no limit on includes or at least any limit you could ever possibly reach and with the same results as a FS!
Reply
#7

I'm with Pottus on this one.
Reply
#8

I would just hook it into your gamemode.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)