Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

" ';' expected. Insert a semicolon at the end." Error Help

$
0
0
Hi. I am making an iOS game, and for some reason, Unity3d is saying I need a semicolon when there is actually one there. Here is the code: //Script to revert winning player back to main menu var levelToLoad : String; function OnTriggerEnter(hit : Collider) { if (other.gameObject.name == "Player") then Application.LoadLevel(levelToLoad); } //END FUNCTION ONTRIGGERENTER It says I need a semicolon on lines 8,7. Please help!

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>