If CODE problems..

Hi I am pretty new at this, but it keeps telling me something is wrong with this code, if anyone can take a look and help me?


Assets/PlayerStuff/Scripts/MovmentScript.cs(61,57): error CS1525: Unexpected symbol `{'
Assets/PlayerStuff/Scripts/MovmentScript.cs(64,59): error CS1525: Unexpected symbol `{'
Assets/PlayerStuff/Scripts/MovmentScript.cs(119,1): error CS8025: Parsing error


using UnityEngine;
using System.Collections;

[RequireComponent(typeof (Animator))]
[RequireComponent(typeof (CapsuleCollider))]
[RequireComponent(typeof (Rigidbody))]
public class MovmentScript : MonoBehaviour {

	public float animSpeed = 1f;				
	public float lookSmoother = 3f;				
	float animSpeedy = 1.5f;					
	private Animator anim;							
	private AnimatorStateInfo currentBaseState;		
	private CapsuleCollider col;					

	static int idleState = Animator.StringToHash("Base Layer.Idle");
	static int idleToStrafeState = Animator.StringToHash("Base Layer.IdleToStrafe");
	static int idleToStrafeSState = Animator.StringToHash("Base Layer.IdleToStrafeS");
	static int walkingState = Animator.StringToHash("Base Layer.Walking");			
    static int sprintState = Animator.StringToHash("Base Layer.Sprint");				
	static int sprintForwardToIdleState = Animator.StringToHash("Base Layer.SprintForwardToIdle");		

	// Use this for initialization
	void Start () {
		// initialising reference variables
		anim = GetComponent<Animator>();					  
		col = GetComponent<CapsuleCollider>();				

	// Update is called once per frame
	void Update () {

	void FixedUpdate (){
		float h = Input.GetAxis ("Horizontal");				
		float v = Input.GetAxis ("Vertical");				
		anim.SetFloat ("UD", v);								
		anim.SetFloat ("LR", h); 							
		anim.SetBool ("Sprint", false);						
		anim.speed = animSpeed;								
		currentBaseState = anim.GetCurrentAnimatorStateInfo (0);	// set our currentState variable to the current state of the Base Layer (0) of animation

		if(currentBaseState.nameHash == walkingState || currentBaseState.nameHash == idleState){
				anim.SetBool("Sprint", true);
			else(anim.SetBool("Sprint", false){


you’re missing a bracket on your if, and using the wrong symbols to open/close your else…


} else{

anim.SetBool(“Sprint”, false);


other errors may disappear when this is sorted, but you may have too many wiggly brackets or too few at the end.

Please indent your code carefully so that {braces} are matched. That will make it much easier to see where you’ve got mistakes in your code.

 else(anim.SetBool("Sprint", false)){


Should be

else {
  anim.SetBool("Sprint", false);

and the } at the end simply shouldn’t be there.