Q: Scripting practice
#4

Code should be grouped by purpose, not by type. The idea behind splitting it up is to not have to look at code you're not currently working on.

Also I do not work out of the pawno/include folder. I leave that folder as it is so it can be overwritten as a whole during updates. I create a "source" folder in the root of the server directory and work from there. So a typical include line can look like:
PHP код:
#include "..\source\3rd_party\plugins\sscanf.inc" 
or
PHP код:
#include "..\source\minigames\stadium.inc" 
Reply


Messages In This Thread
Q: Scripting practice - by Uberanwar - 02.04.2016, 13:53
Re: Q: Scripting practice - by introzen - 02.04.2016, 13:55
Re: Q: Scripting practice - by AndySedeyn - 02.04.2016, 14:49
Re: Q: Scripting practice - by Vince - 02.04.2016, 16:29
Re: Q: Scripting practice - by Floriian - 02.04.2016, 16:34

Forum Jump:


Users browsing this thread: 1 Guest(s)