Error compiling: expected '}' at end of input | MadMaker

Error compiling: expected '}' at end of input

You might have one too many } at the end or { before your code. Possibly when you paste in the code there was a } left in there from before.

As a general hint, you'll notice that when you put your cursor next to any curly brace in the IDE (either opening or closing), the matching (closing or opening) brace will get a little circle around it. This makes it a lot easier to work out if you have all the right braces and no extra ones