Errors in code

Hello. I’m struggling to understand why this code has errors?
Here is code: http://www.hastebin.com/okiyohuxuy.avrasm
I was doing this tutorial: #1 How To Make a Platformer in Unity 5 | Setting Up The Controls - YouTube

Thank you very much.

Your curly brackets weren’t on the right place in several lines of the code you linked on hastebin.

This one should have them fixed. http://www.hastebin.com/navivibamo.avrasm

Hope this helps, and always go over your curly brackets one by one just to be sure you close the right one after opening it.

Hi. Thank you so much Zephire for your quick response, it solved most of it but now it says “Argument missing” in this line GetComponent.velocity = new Vector2 (moveVelocity, GetComponent ().velocity.y,);