- Home /
expecting EOF, found 'showText' please help me!
This is the script i cant see whats wrong :/
showText : boolean;
function OnTriggerEnter () {
showText = true;
}
function OnTriggerExit() {
showText = false;
}
function OnGUI(){
if (showText) GUI.Label(Rect(0,0,Screen.width,Screen.height),"Te xt");
}
Comment
Best Answer
Answer by Piflik · Jul 30, 2012 at 05:33 PM
You are missing the keyword to declare the variable. The first line should be:
var showText : boolean;
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
BCE0044: Expecting : Found = Error! 2 Answers
my script says OnCollisionEnter() error bce005 and it wont work 3 Answers
Spawn Script Issue 0 Answers
Help Solve This 2 Answers