- Home /
 
 
               Question by 
               GabrielSalvesen · Mar 08, 2014 at 05:55 AM · 
                game editor  
              
 
              I have this odd error
So I created a script with a name that it doesn't accept. I tried deleting the script but it still won't let me play my game inside the editor. Here is the error it is giving me. Assets/ShootingScript.cs(1,6): error CS0116: A namespace can only contain types and namespace declarations
               Comment
              
 
               
              The compiler thinks you tried to declare something (like a function or variable) outside of the class declaration. Attach your script and we can give you the exact problem and a fix.
Your answer