[QUESTION] Is this scripting structure good or bad? - 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: [QUESTION] Is this scripting structure good or bad? (
/showthread.php?tid=167678)
[QUESTION] Is this scripting structure good or bad? -
JonyAvati - 13.08.2010
Hi,
I am actually trying some organization methods for my PAWN scripts, I thought it would be a good idea to have, for example, the commands in a "commands" folder, and that each command represents a file, like "help.pwn", then include it in the main gamemode like : #INCLUDE <../commands/help.pwn>.
I'm sure this would slowdown the compilation progress,
what do you think?
Re: [QUESTION] Is this scripting structure good or bad? -
Hiddos - 13.08.2010
I'd simply place it in the pawno/includes folder, it doens't quite matters for the .amx file whether a .inc file exists or not.
Re: [QUESTION] Is this scripting structure good or bad? -
Calgon - 13.08.2010
That's a bit of a mess and would slow down the compile process.
Maybe you could create an include, or a separate pwn file for important snippets of the script, such as one for commands, instead of having one for every single command. One for other important functions, etc, etc.
Re: [QUESTION] Is this scripting structure good or bad? -
playbox12 - 13.08.2010
I agree with Calgon, also it would take a long time to understand the script, if you have an problem. You would have to go trough all the Includes.