Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Mar 02, 2013 at 11:30 AM by Fattie for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by Kristoff · Mar 01, 2013 at 09:38 PM · newbiebce0044exit

BCE0044: expecting ':', found '}'. Again.

Hi, I'm making an adventure game and I keep getting the " BCE0044: expecting :, found '}'." error again and again. This is the script that will show "Press E to exit" text and make the player exit the tavern: private var showText : boolean;

 function OnTriggerEnter () {
 
 showText = true;
 
 }
 
  
 
 function OnTriggerExit() {
 
 showText = false;
 
 }
 
 function OnGUI(){
 
  if(showText) GUI.Label(Rect(500,500,Screen.width,Screen.height),"Press E to exit");
 
 }
 
 function Update()
 {
     if(Input.GetKey("e") && showText == true);
     {
         Application.LoadLevel("Epicmap")
     }
 }

I tried to remove few "}" and It worked, but the "Epicmap" level loaded immediately, not waiting to player enter trigger zone and press "E". Any ideas?

PS: Sorry for my english, also I'm new to scripting and Unity, and this is my first question here :S

Also i saw the other tutorials about the BCE0044 error, but they didn't helped.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

  • Sort: 
avatar image
1
Best Answer

Answer by DaveA · Mar 01, 2013 at 09:40 PM

Application.LoadLevel("Epicmap")

Where's the ; ?

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Kristoff · Mar 02, 2013 at 10:05 AM 0
Share

Nope. Now it says: BCE0044: expecting :, found ';'.

avatar image Nercoe · Mar 02, 2013 at 10:09 AM 0
Share

What line does it say the error is on?

avatar image FLASHDENMARK · Mar 02, 2013 at 10:13 AM 0
Share

Also you have a semicolon at the end of you if statement. That should not be there.

avatar image Nercoe · Mar 02, 2013 at 10:15 AM 0
Share

^ Didn't even notice that lol. Change:

 if(Input.Get$$anonymous$$ey("e") && showText == true);

to

 if(Input.Get$$anonymous$$ey("e") && showText == true)

Follow this Question

Answers Answers and Comments

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How would I get camera bobbing? 0 Answers

Expecting EOF Found } 3 Answers

Unknown identifier "clone"? 0 Answers

UnlitAlpha shader script not working 1 Answer

BCE0044 and UCE0001 Problems In My Script ! Pleeeease Help ! 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges