- Home /
Compiler error FPSplayer script
I am rather new to scripting and I tried to modify the FPSplayer script from the FPS tutorial. But now I keep getting a message telling me that I'm missing "}" on my last line of code.
Here is the message:Assets/FPSPlayeredited.js(126,1): BCE0044: expecting }, found ''.
That is the section of code it keeps pointing me to. I'm getting this on most of my own scripts a well, it could be something as simple as spelling, but I can't seem to fix it.
Answer by fafase · Jul 23, 2012 at 04:50 PM
Most of the time the compiler is telling what is wrong.
In your case, you seem to have missed a }, probably the last one since it is on line 126. The compiler is even nice enough to tell you that where the } should be, it is a " instead.
Answer by Matt-Murch · Jul 24, 2012 at 01:46 AM
Thanks, I took a look at the script and I do have a } on the last line, I tried moving it around by indenting it and adding ones before and after it, but I still get the message. If it helps, I'm using the free version of Unity.
Your answer
Follow this Question
Related Questions
Instantiated GameObject does not have variables 0 Answers
Weapon pick up 3 Answers
How to create a login screen? 0 Answers
How do I make an enemy lead his shots? 2 Answers
Need coding help with fps 0 Answers