- Home /
 
              This question was 
             closed Nov 28, 2014 at 10:20 AM by 
             Graham-Dunnett for the following reason: 
             
 
            Duplicate Question
 
               Question by 
               ventiv · Nov 28, 2014 at 10:18 AM · 
                javascriptuce0001bce0043  
              
 
              I need help with an error
So I put a semicolon where it says to put it but for some reason the error stays even after I do clear errors so I know its not just a user error
Picture of errors in the console : http://gyazo.com/ff871c69c54dd37e8d183ba3db63bcdf
here's the script :
 #pragma strict
 
 import UnityEngine.UI;
 
 var DamageValue = -1:
 var gamemaster : GameObject;
 var textobject : GameObject;
     
 function OnTriggerEnter (info : Collider) 
 {
     if (info.tag == "Player")
     {
     textobject.GetComponent.<health>().Health = +DamageValue;
     textobject.GetComponent.<Text>().text = "Health: " +DamageValue;
     Debug.Log("-1 Health");
     Destroy(gameObject);
     }
  }
 
              
               Comment
              
 
               
              Answer by Graham-Dunnett · Nov 28, 2014 at 10:20 AM
Fix bugs from top to bottom. Your line 5 ends in a colon instead of a semi-colon.
Follow this Question
Related Questions
Javascript Expecting Errors ';' & '=' 0 Answers
';' Expected, Tried everything. How do I do this? 1 Answer
[JavaScript Error] BCE0043: Unexpected token: 2 Answers
Unity 4 Error UCE0001 constantly appearing 2 Answers
Setting Scroll View Width GUILayout 1 Answer