Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jul 09, 2013 at 10:57 PM by Bunny83 for the following reason:

Problem is not reproducible or outdated

You're actually missing a closing bracket after "Fire2" in line 5 and like others have said the bracket in line 6 should be a curly-bracket

avatar image
-2
Question by aokluoglu · Jul 09, 2013 at 02:22 PM · errorunexpectedtoken

Unexpected Token

I get "Unexpected token: PlayerState" error with this script. http://pastebin.com/DKALw2sA The problem is with the 7nth line.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

  • Sort: 
avatar image
0
Best Answer

Answer by rednax20 · Jul 09, 2013 at 02:59 PM

try changing line six to a { instead of a (

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image aokluoglu · Jul 09, 2013 at 03:07 PM 0
Share

Now it says Expecting EOF,found 'else' for the 102th line http://pastebin.com/$$anonymous$$YsLJfjv

avatar image
0

Answer by Sisso · Jul 09, 2013 at 02:35 PM

Could the compiler be expecting something else that a PlayerState?

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image aokluoglu · Jul 09, 2013 at 02:45 PM 0
Share

I don't understand JavaScript that much can you tell me what can I do to fix it please ?

avatar image aokluoglu · Jul 09, 2013 at 02:51 PM 0
Share

BTW this is the full script http://pastebin.com/ibRd4N39 81th line.

avatar image
0

Answer by aokluoglu · Jul 09, 2013 at 03:22 PM

Nevermind just remade all of the code and it worked,I don't know why ._.

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image clunk47 · Jul 09, 2013 at 03:33 PM 0
Share

Close the question please :)

avatar image rednax20 · Jul 09, 2013 at 10:41 PM 0
Share

he can't close the question for some reason you need like 200 karma points to do that.

speaking of karma, why did he get 2 down votes for his question?

avatar image clunk47 · Jul 09, 2013 at 10:43 PM 0
Share

Ahh ok. And I don't know who voted down the question or why lol.

avatar image clunk47 · Jul 09, 2013 at 10:44 PM 0
Share

All he has to do to close the question is accept the answer here that he put up himself. It's not technically closing it, but if he accepts the answer, the question won't show up as new.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

I am having two errors with my jump script 1 Answer

Unexpected token: if 1 Answer

I'm trying to teleport an object. But keep failing. 2 Answers

Help me with this Unexpected token error 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges