- Home /
Question by
xwheat32x · Aug 05, 2014 at 05:46 PM ·
javascripterrorfor-loopbce0049
Help solving for loop error
I wrote a fairly simple for loop:
When it compiles in Unity, it gives the following error: "BCE0049: Expression 'int' cannot be assigned to ."
If someone can tell me what I'm doing wrong, that would be very helpful. Thanks in advance.
errorcapture.png
(7.9 kB)
Comment
If you look at the right of this page you'll see a tutorial which will tell you how to paste code into your questions.
Best Answer
Answer by Graham-Dunnett · Aug 05, 2014 at 05:48 PM
You're doing int++
instead of i++
.
Oh wow. I looked at that for so long and didn't even realize. Thank you.
Your answer
![](https://koobas.hobune.stream/wayback/20220613155912im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
For statement errors? 1 Answer
BCE0049 error with networking script 0 Answers
Animation Crossfade won't play but Animation Play does 1 Answer
BCE0043: Unexpected token: }. 1 Answer