This question was
closed Jul 11, 2017 at 09:57 AM by
Hellium for the following reason:
Posting about a specific compiling error or NullReferenceException
Question by
Mikeyran1 · Jul 11, 2017 at 02:58 AM ·
error message
How do i get rid of this "Unexpected symbol 'void' error?
Im trying to make Pong on Unity, this is my first project on Unity. Im struggling to get rid of this "Unexpected symbol 'void' error, and could really use help.
pong-error-code-1.png
(95.7 kB)
Comment
Answer by NorthStar79 · Jul 11, 2017 at 06:50 AM
-there is a "}" at line 12 , remove it.
Thanks for trying to help, but that caused more unexpected symbol errors on lines 24,30,39, and 40
because you need to add '(' at 24 after if.
and you need to add a '}' at very end of code too.
you need to learn some coding fundamentals before jump starting unity. all of these are too basic errors. just take a look at some basic c# tutorials it will help more than you expect trust me