ID:268889
 
_>
Okay, okay, so I'm attempting to do a day and night system. It ALL works except for one part. Switching days.

global.cday++
global.day = global.days.len[global.cday]

Yep. I already have a check if cday is over 7 it's set back to 1. Did and done. BUT, I get a nice friendly runtime error

runtime error: cannot read from list
proc name: time (/proc/global/time)
source file: Time.dm,15
usr: null
src: null
call stack:
time()


Yeah, it's in a global proc, as of that's the only way I could call it...and I get that lovely error. ;o
Well, thanks for reading.
global.days may be a list, but global.days.len is not.

Lummox JR
In response to Lummox JR
o.o
Woah, I thought len was like copytext, it'd read that exact part of the list.

Well, thanks Lummox.