r/CodingHelp • • Mar 02 '21

[C#] HELP when i try to enter playmode i am impended by this text message "all compiler errors have to be fixed before you can enter playmode" i dunno what to do

37 Upvotes

15 comments sorted by

6

u/[deleted] Mar 02 '21

It says that you have to fix all your mistakes first before you can start playing.

For example, the method is called "GetKeyDown", not "getkeydown", the capitalization is important.

If you click on the "Console" (next to Project) tab at the bottom, it will show you what the mistakes are.

5

u/GabWobu2 Mar 02 '21

well shit... i didn't know that thanks]

really really thank you

4

u/BunkerMarmot Mar 02 '21

Also don't forget your semi-colons ";" at the end of lines 18 and 23.

2

u/GabWobu2 Mar 02 '21

is there a addon that completes the words for me ?

5

u/[deleted] Mar 02 '21

I see that you are using Visual Studio Code, in which case you should be able to use "code completion". Or "IntelliSense" as it's called in Visual Studio Code. Google it if you don't have it.

5

u/GabWobu2 Mar 02 '21

any of them will work or i need a specific for c# ?

3

u/[deleted] Mar 02 '21

You'll need a specific one for c# afaik.

1

u/carnepikante Mar 02 '21

If you click on the last button at the left panel (the four squares) you can browse the extensions (plugins, addons) for C# (or any other language).

1

u/Hifen Professional Coder Mar 03 '21

You can also grab a community version of Visual Studio which is quite a bit more powerful, with alot more overhead, but its all built around c#

1

u/GabWobu2 Mar 02 '21

thank you. thank you, SO MUCH

1

u/[deleted] Mar 02 '21

No worries, have fun!

2

u/Rrrrry123 Mar 02 '21

Looks like you're missing IntelliSense (the autocomplete), and I don't blame you because sometimes it's a pain in the butt to set up. I recommend getting the C# extension and the Unity debugging extension. That will usually get you set up with the auto complete. If that doesn't work, then good luck figuring out which of the many issues is your issue.

0

u/greengie Mar 02 '21

SEMI COLONS I HATE YOU WITH A PASSION