13.06.2015, 03:27
You probably got errors because your includes had dependent code(this include depends on another include).
When you make includes, you must ensure that they work independently.Or you'll have to include two or more includes which makes no sense.The purpose of using includes is lost.
Make includes like when you have lot of defines/strings/etc which you are going to use in difference scripts.
For example,
#define TEAM_A 1
#define TEAM_B 2
const TeamStrings[][] =
{
"none", "Team A",Team B"
};
Keep such codes in an include.It will help you with inter-script communication.
When you make includes, you must ensure that they work independently.Or you'll have to include two or more includes which makes no sense.The purpose of using includes is lost.
Make includes like when you have lot of defines/strings/etc which you are going to use in difference scripts.
For example,
#define TEAM_A 1
#define TEAM_B 2
const TeamStrings[][] =
{
"none", "Team A",Team B"
};
Keep such codes in an include.It will help you with inter-script communication.