• 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 /
avatar image
Question by Orandze · Feb 23, 2011 at 11:17 PM · javascripterrorfunctioncustombce0044

Error: expecting (

I have no idea what is wrong. I am calling a function just as I have at least a dozen times my various scripts in this game, but for some reason it doesn't want to work now. Here's my script:

function PerformSet() { //a bunch of code

AddItUp(); }

function AddItUp() { //a bunch of code }

And the error is this: BCE0044: expecting (, found 'AddItUp'.

It doesn't even have a problem with the PerformSet function. Am I just doing something stupid?

Comment

People who like this

0 Show 2
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 · Feb 23, 2011 at 11:21 PM 0
Share

The error will be contained in one of the "`//a bunch of code`" that you've omitted. If you update your question with the exact code, I'm sure someone will be able to spot the issue.

avatar image FLASHDENMARK · Feb 23, 2011 at 11:22 PM 0
Share

I am tired...but i do not see a problem here. Mabye it is not in this code the problem is?

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by DaveA · Feb 23, 2011 at 11:23 PM

Can you post the 'bunch of code' because it sounds like the first bunch has a problem.

Comment
Orandze

People who like this

1 Show 1 · 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 Orandze · Feb 24, 2011 at 01:16 AM 0
Share

Thanks so much. I was in fact doing something stupid. As soon as I read your and Marowi's responses, I found it. The problem was that I had forgotten to close up an if statement right before calling the AddItUp function. All I had to do was add a '}' and the problem was solved. Thanks again!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Trying to send message with 2 variables, but getting error. 1 Answer

How to use if statement with var? 3 Answers

Trouble making money system 1 Answer

Error BCE0044 plz help 0 Answers

function in a function error 1 Answer


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