Hello,
I started in programming in C # and I met these errors:
Unexpected symbol ‘void’ (line 29)
Unexpected symbol ‘if’ (2 times at line 31 and 32)
Unexpected symbol ‘Global’ (line 33)
I hope these errors are simple to solve and I am sorry to take ur time for me in answering my post.
In advance, thank you very much.
1925325–124357–CarUserControl.cs (888 Bytes)
BenZed
January 18, 2015, 6:52pm
2
Just look in your MonoDevelop and press build. It’ll bring you to these errors and allow you to fix them.
Kiwasi
January 18, 2015, 7:16pm
3
Unexpected symbols are most often caused by what is directly before the error, and not where the error is pointing.
Common causes include mismatched brackets, missing semi colons and functions outside of a class.
Focus on the first error. Fix it, then recompile. Often the first error confuses the compiler, and fixing it makes the others go away.
Line 27 has a closing brace which closes the class. Wrong.
Line 29 has an opening brace for no good reason.
Everything else is an error caused by line 29.
1 Like
Its working perfectly now !
Thank you very much for all the answers very very fast.