06.06.2016, 11:37
Here's a simple explanation of what "Array index out of bounds" means:
It seems that that's happening in your LoadMode() function.
PHP код:
new array[5];
// You can only use these:
// array[0], array[1], array[2], array[3], array[4]
// If you try to use array[5] or array[5345] etc, you'll get that error.