Forum rules - please read before posting.

using AC namespace

I need to use my global variables in script. But when placing Using AC; in my code it returns an error CS0246: The type or namespace name `AC' could not be found. Are you missing an assembly reference?
Can anybody see what's the problem? I have all of adventurecreator imported into my project.

Comments

  • Hi, and welcome to the AC forums @shrumms.

    Anyway, this is highly likely down to your code. Though, it's hard to say, since you didn't post it... Please remember to post as much information as you can whenever you open a thread, as stated in the forum rules, that way we'll be able to make a better guess about what could be the source of a problem. Anyway, make sure you don't actually use a capital letter in the using keyword. It should be: 

    using AC;
  • Also be sure to place it outside of your class name - i.e. above the "public class YourScriptName" line.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.