Assets/MelleSystem.js(3,18): UCE0001: ';' expected. Insert a semicolon at the end.

Hello i have problem with scripting on Unity
Im newbie please help me i try to create weapon system
Here is my script
#pragma strict

var Dammage : int - 50;
var Distance : float;
var MaxDistance : float - 1.5;

function Update ()
{
if (Input.GetButtonDown(“Fire1”))
{
var Hit : raycastHit;
if (Physics.Raycast (Transform.position, transform.TransformDirection(Vector3.forward), hit))
{
Distance = hit.distance;
if (Distance < MaxDistance);
{
Hit.transform.sendmessage(“ApplyDammage”, Dammage, SendMessageOptions.DontRequireReceiver);
}
}
}
}

I Have 2 errors
first is
Assets/MelleSystem.js(3,18): UCE0001: ‘;’ expected. Insert a semicolon at the end.
second
Assets/MelleSystem.js(5,24): UCE0001: ‘;’ expected. Insert a semicolon at the end.
Please help me :slight_smile: and if you can say to me why this error is come i will be happy :slight_smile:

hi,

please check this first:
http://forum.unity3d.com/threads/134625-Using-code-tags-properly

for starters you have some problems here:

var Dammage : int - 50;
var MaxDistance : float - 1.5;

These tutorials will help alot!