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 /
  • Help Room /
avatar image
0
Question by RadamSTGamer · May 30, 2014 at 10:12 PM · errorparsingcs8025

Error CS8025: Parsing Error

Im getting an error that says: Assets/Scripts/Player.cs(29,9): error CS8025: Parsing error and i dotn know whats causing it so please help me. My code:

using UnityEngine; using System.Collections;

public class Player : MonoBehaviour {

 public float velociadade ;
 // Use this for initialization
 void Start () {
 
 }
 
 // Update is called once per frame
 void Update () {

     Movimentar();
 }

 void Movimentar()

 {
             if (Input.GetAxisRaw ("Horizontal") > 0) {
                     transform.Translate (Vector2.right * velociadade * Time.deltaTime);
             }

     if (Input.GetAxisRaw ("Horizontal") < 0) {
         transform.Translate (-Vector2.right * velociadade * Time.deltaTime);

 }
Comment
Add comment · Show 3
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 hight Five · Feb 20, 2015 at 07:21 AM 0
Share

i have the same error in this sentences please i need to know what's the probleme here .this is where's the probleme appear : **void carry (GameObject o){ o.rigidbody.iskinematic=true ; o.transform.position=mainCamera.transform.postion+mainCamera.transform.forward*distance ; }

avatar image KrugSckpouch · Nov 09, 2015 at 04:15 AM 0
Share

WTF ?!

alt text

sem-titulo.jpg (183.7 kB)
avatar image rutter KrugSckpouch · Nov 09, 2015 at 04:15 AM 0
Share

You're missing a curly brace.

3 Replies

· Add your reply
  • Sort: 
avatar image
16

Answer by sargunster · May 30, 2014 at 10:21 PM

You're missing a closing curly brace '}' at the end of the file.

EDIT: And another one at that last 'if' statement.

Comment
Add comment · 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
0

Answer by Andorid42 · May 08, 2016 at 12:37 AM

In running through the tutorial I noticed after a crash that if you copy and paste in code and there are more command line numbers you will get this error even if the brackets around functions are correct. try deleting excess lines from script, until just before the terminating bracket it will go away.

Comment
Add comment · 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
0

Answer by Pistol_Bear · Aug 02, 2016 at 02:00 PM

Hi, I had a similar problem and I was able to fix it in the following manner:

First I checked my curly braces as many of these users have needed to do, but my code was fine. Further more, I knew my code was fine because it had worked before, but my Library folder had been nuked so I had to copy-paste a bit.

So another thing to check here is the fact that VS and Mono don't play the same game with regards to line endings. MonoDevelop uses the same one all the time and VS does whatever it feels like at the time. So for each file that I was getting the CS8025 error, I opened it in VS and went to File->Advanced Save Options and changed "Line endings" to be Windows (CR LF). I'm on windows 10, ymmv.

alt text


cs8025-fix.png (15.9 kB)
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 Pistol_Bear · Aug 02, 2016 at 02:03 PM 0
Share

@RadamSTGamer - if you haven't picked an answer yet for this question, consider picking one, as this issue seems to to need it.

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

48 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 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 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

I have this stupid thing called parsing error cs8025 on my GunShot Script 1 Answer

I have this stupid thing called Parsing error cs8025 on my GunShot script and want to get rid of it some body please help 0 Answers

Parsing error CS8205,Parsing Error CS8205 2 Answers

error CS8025: Parsing error: dont know what to do here 1 Answer

Help with my Arrow Fire Script 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