- Home /
Question by
TheBoredMan5 · Apr 30, 2014 at 09:29 PM ·
shop
Need Coding Help! BCE0044: expecting }, found ''.
Not sure how to fix this, Please Help.
#pragma strict
function Update ()
{
//On or Off
if (Input.GetKeyUp("E"))
{
if (ShopOn == false)
{
ShopOn = true;
}
else if (ShopOn == true)
{
ShopOn = false;
scrollBarChopGrid.y = 0;
}
}
Comment
Is this all of the code? You're missing a closing curly brace for your update function.
Answer by TacticalBlank · Apr 30, 2014 at 09:33 PM
If this is all the code, then you just need to add bracket } to the end of the script.
I added a Bracket to the ending, But it still did nothing. the same error occured.
Is it the exact same error? Pay attention to file names and line numbers. Unbalanced brackets are a really simple problem if you keep your code organized.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
I'm Getting Weird Bugs Today 1 Answer
How to make a player die after health reaches 0 3 Answers
Elevator Script.. Please Help! 2 Answers