# Error CS1525: Unexpected symbol `;', expecting `:'

I don’t know where this error is coming from?

``````Assets/track_creator.cs(19,32): error CS1525: Unexpected symbol `;', expecting `:'
``````

This is my code:

``````using UnityEngine;
using System.Collections;

public class track_creator : MonoBehaviour {
public Vector3[] vertices;//my vertices
public int[] triangles;//my triangles

Quaternion startAngle;

int distance;//length of vertices array
Mesh mesh;

void Start() {
mesh = GetComponent<MeshFilter>().mesh;
distance = mesh.vertices.Length;
}

public Vector3 calculateBezierPoint(float t, Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3) {
float u = 1 – t;//19
float tt = t * t;
float uu = u * u;
float uuu = uu * u;
float ttt = tt * t;

Vector3 p = uuu * p0; //first term
p += 3 * uu * t * p1; //second term
p += 3 * u * t * p2; //third term
p += 3 * tttt * p3; //fourth term

return p;
}

public void createPeice(GameObject track, Vector3 p1, Vector3 p2) {
startAngle = transform.rotation;
startAngle.z -= 90;

}
``````

}

I got the function from here: http://devmag.org.za/2011/04/05/bzier-curves-a-tutorial/

I haven’t looked into it too much, but there seems to be nothing wrong with that line, and the one above it. I’m not too sure about multiplying p by floats, if that could be a problem too.

What a subtle problem. The issue is that, however you typed it in, the ‘-’ sign is not really a ‘-’ sign. It is some other symbol. Retype the ‘-’ sign on line 19 and the code will compile.