06.06.2016, 14:57
Haven't downloaded the script or anything, but you're having a bug since the first lines of code.
You're using 8 teams in the script, which are the extra ones you have added, but you haven't changed the max teams definition.
Looked five seconds into the code and found this, not going any deeper.
Code:
#define MAX_TEAMS 6
Looked five seconds into the code and found this, not going any deeper.