24.12.2016, 11:02
You should've included PAWN OOP, more people should start doing some OOP with PAWN, it's really easy. How to do it is simple:
Start a new gamemode normally, then include all pawn includes, then basically add something like this:
the path will be **THE SERVER DIR**/Assets/class.database.pwn
I would've use y_hooks to have a more readable code in the classes, a simple class of a database manager would be like:
http://pastebin.com/wVui4Met
It makes all files much more readable and easy to edit small parts without having to search by 100.000lines, it will be much more documentated without any effort needed.
Start a new gamemode normally, then include all pawn includes, then basically add something like this:
PHP Code:
#include "../Assets/class.database.pwn"
I would've use y_hooks to have a more readable code in the classes, a simple class of a database manager would be like:
http://pastebin.com/wVui4Met
It makes all files much more readable and easy to edit small parts without having to search by 100.000lines, it will be much more documentated without any effort needed.