HELP! my code I saying "function definition not allowed here"

multiple times in my code it says “function definition not allowed here” and I can’t figure out why.
here is said code:





You probably have mismatched brackets somewhere. Make sure you closed every bracket you opened.

2 Likes

@Renee13 Specifically be looking around just before line 383, whatever function is before that is where I would expect you have a braces, bracket, or parentheses mismatch.

This is one of the reasons that using something like VSCode for doing text-based code is nice, because it will color parentheses and do other syntax highlighting to help identify when you have a mismatch.

2 Likes

Quick note, the bracket on line 378 is commented out, that’s most likely where the problem is.

3 Likes

thank you! I did fix it, I forgot to check for replys.