- Home /
 
               Question by 
               FiveAtol · Mar 01, 2014 at 05:34 AM · 
                javascripterror message  
              
 
              How to fix BCE0022 Error
This code worked about 3 hours ago but when i tried to test run my game i get this .. " Cant convert items to String" heres the code
 public class items
 {
     var Name : String;
     var Damage : int;
 }
 var weaponChild : List.<items> = new List.<items>();
 childGUI.guiText.text = weaponChild[moveList]; // This is giving me the error
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by robertbu · Mar 01, 2014 at 05:36 AM
You are trying to assign an 'items' to a text. I believe you want:
  childGUI.guiText.text = weaponChild[moveList].Name;
Your answer
 
 
             Follow this Question
Related Questions
Setting Scroll View Width GUILayout 1 Answer
Writing javascript for web and android 1 Answer
Why am I getting this error ? 2 Answers
Why can't I make this VAR public ? (Solved) 3 Answers
On fov change, screen position out of view of frustum error 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                