Parsing error. And unexpected void

Hi,
Im just setting up Unity and I write my first script and get these errors.

Assets/Scripts/NumberWizard.cs(19,21): error CS1525: Unexpected symbol (', expecting)’, ,',;’, [', or=

Assets/Scripts/NumberWizard.cs(19,19): error CS1547: Keyword `void’ cannot be used in this context

Hope you can help,

Hi @Tim_Vieweg,

Could you please post your full script so that we can help you resolve the issue, chances are it will be a closing bracket / brace or a missing semi-colon but if you post your code up we can see. You can use the Preformatted Text tool on the toolbar to format it also. (CTRL+SHIFT+C or the </> icon)

Many thanks but it works now!
Kind regards Tim Vieweg

Glad to hear you have resolved the issue Tim.

:slight_smile: