OK, so I've simply declared a String in my game start global like so:
function game_start()
{
String Active;
export Active;
}
and than in header like so:
import String Active;
It gives me the: "Local variable cannot have the same name as an import" error. These are literally the only occurences of the "Active" String as this is a brand new game and only have few lines of code. Can anyone help?
Thanks!
You cannot export local function variables, only global variables that you declared outside of function.
Right. Thank you!