Author Topic: Weird Syntax Error with registerOutputEvent  (Read 763 times)

This makes no sense. Can anyone help out?



I do not understand if it is just me or something isn't right.

The good news is you're right, it makes no sense and that line is fine.

The bad news is this means there's an error elsewhere in your file, and that the debugger isn't going to help you.

My recommendation is to comment out that line and run it again, see where it puts the syntax error.

Wait a second.. I forgot this was in a package. That's why.

It executes it fine now.

EDIT: If I need more of help, I will just add onto this.

People typically register events at the top of the cs file for cleanliness and to avoid this kind issue fyi

In the future, copy/paste the code as well, because reading the code from the way the error report rapes the formatting is a pain