killing/level

hi people,
I have a question…
I made this script today,
and happened an error, then I write in the forum,
they solve my problem, but happened other.
what I did wrong?

Assets/Scripts/Control Scripts/TempleLoadLevel.js(4,43): UCE0001: ‘;’ expected. Insert a semicolon at the end.

this script is for:

change map/level when I touch him.

function Update () {

	if (hit)  gameObject.tag == "Player"
					 Application.LoadLevel ("Worm_World_Map_1");
	
}

thanks

gameObject.tag == "Player"

== is a comparison operator meaning “are the equal” This should either be ‘=’ or inside an if-statement. You are also missing a semicolon at the end.

thanks

now this happen

Assets/Scripts/Control Scripts/TempleLoadLevel.js(4,13): BCE0005: Unknown identifier: ‘hit’.

function Update () {

if (hit) gameObject.tag = “Player”;
Application.LoadLevel (“Worm_World_Map_1”);

}

you should post in the scripting area and first of all learn some basic programming, the variable “hit” you use in the if block hasn’t been defined

nevertheless… if statement does not look like that, it has it’s own { }'s

function Update {
if (condition) {
consequence;
}
}

listen to arioch and learn some basics