SA-MP Forums Archive
Making each function/relevant in a separate include?[REP++] - 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: Making each function/relevant in a separate include?[REP++] (/showthread.php?tid=318259)



Making each function/relevant in a separate include?[REP++] - Hoborific - 14.02.2012

Title should explain it all, trying to not have so much shit in my gamemode, putting systems into includes, opinions/feedback.etc


Re: Making each function/relevant in a separate include?[REP++] - HighFlyer - 14.02.2012

Your explanation is quite vague. If you want my opinion on includes, it's reliable, you can load it inside any gamemode. I'm not sure how fast it would be, but I imagine tad slower due to the fact it looks for the files within your folder structure. I might be wrong however. And when you don't want a certain script, for example a filterscript, you simply unload it, where in comparison to a gamemode, you'd have to remove it from the GM, accounting fixing errors if any occur.


Re: Making each function/relevant in a separate include?[REP++] - Madd Kat - 14.02.2012

Includes only will affect compile time
But wont be much more than if it was right in the gm.
If it slows it at all....


Re: Making each function/relevant in a separate include?[REP++] - ReneG - 15.02.2012

I like this idea. Can aid in making gamemodes dynamic.