x


Unexpected Token }.

Hello everyone, Makar here, I was working on a script, and I found this rather odd: alt text

This is the Console error, and below is the Script itself: alt text

The second to last line, which is highlighted, is the line in question by the console. It says unexpected token, yet it's the semicolon. It's closing the other, so what's wrong?

more ▼

asked Dec 05 '10 at 10:15 PM

David 17 gravatar image

David 17
2 2 2 3

Try adding a break statement after case 0.

Dec 05 '10 at 10:21 PM yoyo

Thanks man! It worked.

Dec 05 '10 at 10:23 PM David 17
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You should add some command/commands in the "case 0:" block (instead of the comment). The compiler tries to find a command there, so the semicolon is unexpected :)

more ▼

answered Dec 05 '10 at 10:23 PM

DominoOne gravatar image

DominoOne
38 2 2 5

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1951
x198
x34
x12

asked: Dec 05 '10 at 10:15 PM

Seen: 2913 times

Last Updated: Dec 05 '10 at 10:15 PM