Using Includes more as Frameworks
#8

Quote:
Originally Posted by cessil
Посмотреть сообщение
If I were to create a roleplay script I would split a lot of it into sections, my first would be an AC include to hook the default functions like GivePlayerMoney ect.
Then I'd also use includes for features such as Bank, fishing, ect. although I haven't thought it through on what would go into which include.

Here's a rough idea
#include <anticheat>
#include <z_cmd>
#include <colours>
#include <gen_commands>
#include <fishing>
#include <bank>
#include <police>

Or I'd use includes within includes like
#include <commands>
and then inside commands.inc it'd be split up with <police_commands> ect.

I've been using other languages and I really like having several files ~1000 lines over one big file with ~100,000 lines
I know what you mean, but I'm trying to suggest that people use released plugins and includes as libraries to save them time, so they don't have to write as much code.
Reply


Messages In This Thread
Using Includes more as Frameworks - by Calgon - 29.06.2012, 14:32
Re: Using Includes more as Frameworks - by SuperViper - 29.06.2012, 16:15
Re: Using Includes more as Frameworks - by MP2 - 29.06.2012, 23:28
Re: Using Includes more as Frameworks - by MP2 - 30.06.2012, 00:53
Re: Using Includes more as Frameworks - by Steven82 - 30.06.2012, 04:14
Re: Using Includes more as Frameworks - by Calgon - 30.06.2012, 15:59
Re: Using Includes more as Frameworks - by cessil - 01.07.2012, 11:47
Re: Using Includes more as Frameworks - by Calgon - 01.07.2012, 11:48
Re: Using Includes more as Frameworks - by ReneG - 01.07.2012, 15:19
Re: Using Includes more as Frameworks - by TheChaoz - 01.07.2012, 15:51

Forum Jump:


Users browsing this thread: 3 Guest(s)