[QUESTION] Is this scripting structure good or bad?
#1

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)