SA-MP Forums Archive
Splitting code into modules - some better ways - 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: Splitting code into modules - some better ways (/showthread.php?tid=413945)



Splitting code into modules - some better ways - Misiur - 07.02.2013

I tried doing it myself, finished few projects using my method, but it gets really messy in the end

Is there some way/library/set of snippets/plugin which will allow me to:
- use multiple files
- define header files (well, it contains itself in first point)
- use namespaces (with easy access to namespace name from other files)

Additional points for:
- not using outside programming language (I considered writing builder in ruby/php/js, but maybe there are some simpler methods not requiring thirdparty tools), therefore requiring only pawn compiler to build


Re: Splitting code into modules - some better ways - Misiur - 07.02.2013

Oh, how splendid. I always considered 'static' usage only for remembering value within function without creating unnecessary global variable - that's what you get for only sweeping through documentation.