- Home /
 
               Question by 
               $$anonymous$$ · Mar 25, 2013 at 03:39 PM · 
                erroruce0001semicolon  
              
 
              UCE0001 error Insert a Semicolon at end
Errors:
Assets/Scripts/GunShoot.js(2,31): UCE0001: ';' expected. Insert a semicolon at the end. Assets/Scripts/GunShoot.js(3,15): UCE0001: ';' expected. Insert a semicolon at the end.
code::::
 public var BulletPrefab : Transform;
 public var BulletSpeed : float 5000;
 var Ammo : int 30;
 var GunShoot : AudioClip;
 var Reload : AudioClip;
 var EmptyClip : AudioClip;
 var EmptyClip : boolean = false;
 
               Comment
              
 
               
              lines 2 and 3 are:
2-----public var BulletSpeed : float 5000; 3-----var Ammo : int 30;
 
               Best Answer 
              
 
              Answer by robertbu · Mar 25, 2013 at 04:14 PM
You need to add '=' signs:
 public var BulletPrefab : Transform;
 public var BulletSpeed : float =  5000;
 var Ammo : int  = 30;
 var GunShoot : AudioClip;
 var Reload : AudioClip;
 var EmptyClip : AudioClip;
 var EmptyClip : boolean = false;
Your answer
 
 
             Follow this Question
Related Questions
Multiple Cars not working 1 Answer
insert semicolon 2 Answers
Scripting Error! - UCE0001: ';' expected. Insert a semicolon at the end. 1 Answer
Animation spins wildly after completed 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                