Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

i need help i h've a error and i don't know how i fix this

Discussion in '2D' started by _Evasi0n, Apr 20, 2015.

  1. _Evasi0n

    _Evasi0n

    Joined:
    Apr 13, 2015
    Posts:
    9
    Code (JavaScript):
    1. 'else' if(Input.GetAxis (axisName) > 0)
    and this is the error:
    Assets/scripting/walk.js(30,12): UCE0001: ';' expected. Insert a semicolon at the end.

    can somebody help me

    sorry i am a noob
     
  2. Jami_2

    Jami_2

    Joined:
    Apr 22, 2013
    Posts:
    19
    Is this all, your code is incomplete.

    Code (CSharp):
    1. If (I AM HUNGRY)
    2.     GO EAT SOMETHING;
    Is the right way.
     
  3. _Evasi0n

    _Evasi0n

    Joined:
    Apr 13, 2015
    Posts:
    9
    that's not a good answer
     
  4. Jami_2

    Jami_2

    Joined:
    Apr 22, 2013
    Posts:
    19
    Similar to your Question.

    Code (CSharp):
    1. 'else' if(Input.GetAxis (axisName) > 0)
    2. DoAnything;// this line is missing close your if()
    3.  
    You missing a semicolin