|
i keep getting error messages saying there is an unexpected token in a script i am using. does anyone know what this means and how to get rid of it and could you plz explain it to me in simple terms cos i am a bit of a noob with java. here is the script with the problems
the problems with it are: unexpected tokens: monobehaviour, static, int, gameobject other problems: expecting EOF, found private hope this makes answering easier and thanx for ur help
(comments are locked)
|
|
Google helps. But mainly, the type your trying to pass through doesn't exist, highly recommend posting script so that others can help you more. http://lmgtfy.com/?q=unknown+token+unity <-- shorter URL and more condescending.
Apr 22 '11 at 06:53 PM
flaviusxvii
Lol, true, but meh... XD.
Apr 23 '11 at 12:21 AM
Justin Warner
(comments are locked)
|

Please highlight your code and push the 10101 button up top to code-ify it. Thanks.
Why do you have static; in there? That's not really helping... Maybe you should try to learn to script before you copy others code and understand why what happens...
I was going to say the same thing why did you place the ; after the Static ?
You aren't writing JAVA! It doesn't even look like Javascript. You should look at different examples of C#, and Javascript to understand the differences. And you're being pretty liberal with the use of ';' in the code. It indicates the end of a statement and is inappropriate after 'using', and 'static' and this is a real mess you have here.