Normally I'm quite good at fixing errors myself, but these ones are just too strange. All of these errors are Unknown Identifier errors. Did something in the JS scripting engine change recently? I think I last used the example in Unity 3.0 and it worked then.
I'm getting lots of errors that don't make sense, like:
Unknown Identifier: i
Is my MonoDevelop corrupted?
If you referring to a special example project it would help to include a link to it or at least post a bit more code and even more important the name or extention of the script file.
The first line "could" compile without the strict pragma but i'm not sure, i don't use UnityScript. However if this script is writting in Unityscript just add the var keyword like this:
As i've mentioned several times on other questions always include also the code before the error. Semicolon errors usually comes from a missing bracket or something like that.
answered Oct 13 '11 at 12:43 AM