How can i get this to work

Hello people i ask people this and i got this far

Ok so when i shot a target it destroys it and check how many are left if there 0 it load the next map and can tell me how to do it i put you in for credits i am just noob at coding thank you

var cars : int;
var leveltoload : int;

function OnTriggerEnter (other : Collider)

	cars --;
	if(cars == 0) 

if(cars == 0)


in the last line the “leveltoload” you have used is an int, but you can only use string variables in Application.LoadLevel(). So convert “leveltoload” to string then it will work.