ID:148071
 
I'm trying to add on world variables so I can transfer them to different area variables, but everytime I try I get an error... here:

world
var
weather
forecast

Error:

time.dm:6:error:weather :variable declaration not allowed here
time.dm:7:error:forecast :variable declaration not allowed here


Any help? ^^
The world doesn't have variables like that, you need global variables.

global
var
blah

Or simply.

var
blah


Don't put those under ANY Datums, just have them by theirselves.
In response to Nadrew
Okay, but how would I use these variables in my coding?

like here..
proc
Weather()
src.worldtime = world.realtime
src.weather = weather
src.forecast = forecast
sleep(50)
Weather()


I know thats gotta be wrong.. Oo how do I use a global var or just a var in my coding like that?