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

Error BCE0044

Discussion in 'Scripting' started by Darvo, Jan 3, 2015.

  1. Darvo

    Darvo

    Joined:
    Jan 3, 2015
    Posts:
    5
    I dont know if i this is the right thread to put this on but i am getting this error when creating a movement script

    Assets/Scripts/Movement.js(35,1): BCE0044: expecting }, found ''.

    fag.png fagg.png
     
  2. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,500
    The end of the error message is telling you what's up. It was expecting to find a } character, but it instead found a " character and doesn't know what to do with it.

    Also, it's pointing at line 35, and your screenies only go up to line 34.

    For every opening brace { you have, you need a matching closing brace }. You're either missing one of those, or you have a quote " where it's not valid.

    This stuff is super cryptic at first, but with practice you'll fix errors like this in a snap. Bear with it and be patient, you'll get there. Best of luck!
     
  3. Darvo

    Darvo

    Joined:
    Jan 3, 2015
    Posts:
    5
    Thank you
     
    angrypenguin likes this.
  4. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    Please post in the correct category (scripting questions go in Scripting), and post code as code, not as images. Thanks.

    --Eric
     
  5. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,500
    You're most welcome. Did you get it solved?
     
  6. Darvo

    Darvo

    Joined:
    Jan 3, 2015
    Posts:
    5
    Yes i removed the bottom of the script and it seemed to fix it
     
  7. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287