script bug?

uh, hey…
so i scripted this weapon script… but it turns out to give me errors

script-
http://pastie.org/8317540

error-js(59,1): BCE0044: expecting }, found ‘’.

although i have inserted the } at last :confused:

plz HELP

this problem reminds of those end of file errors which mean it could be anywhere.

to make it more readable I would suggest formatting with proper indents and always put curly braces for if(), if you dont then the only thing you will have to go for recognizing where it ends is with indenting of code, which is not there either.

for example:

if(weapon01.active == false)
if(weapon02.active == false)
if(weapon03.active == false)
if(weapon04.active == false)
if(weapon05.active == false)

can be a bit confusing