- Home /
Error UCE0001 ";"Expected
Hi! I have this code and it says insert ";" but i have it there already There.
var pScore:GUIText;
var eScore:GUIText;
static var Str : String;
function OnGUI()
{
pScore.text = "Player Score: " + Ball.PlayerScore;
eScore.text = "Enemy Score: " +Ball.EnemyScore;
}
function Update()
{
if(Ball.EnemyScore > 3)
{
Time.timeScale 0.0; //Over Here
}
}
Answer by IgorAherne · Jul 21, 2013 at 01:17 PM
put Time.timeScale = 0.0; you forgot about equals)
what it was telling you is that , it doesn't see how 0.0 relates to Time.timeScale, since there is no equals.
Therefor it expects that 0 begins a new line
Answer by dorpeleg · Jul 21, 2013 at 01:17 PM
You forgot "=".
Should be: Time.timeScale = 0.0;
The errors are not always correct, always check around the area where the errors pops up for anything.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Multiplayer Script error 2 Answers
Error line 22! Help. i dont know why? 1 Answer
UCE0001 error Insert a Semicolon at end 1 Answer
each enemy have different damage amount, how to calculate the hp remain??? 1 Answer