[MERGED] Mode was not declared in this scope

This topic has been merged into Low Memory Problem, May Cause Stability Problems ---Error Message.

Biggest problem is that your code is one big run-on line. Even copy & pasting it into the IDE and then using Autoformat did not help.

You're not likely to get any help until you can fix that and post a readable version.