As your variable time is global, without namespace, and with a really generic name, I guess you have another script, loaded before this one, which also use time variable and declare it as an array.
Change your variable name.
Tip: never use generic name, and more never use reserved keywords, as time (which is also a function)
CrazyCat wrote:As your variable time is global, without namespace, and with a really generic name, I guess you have another script, loaded before this one, which also use time variable and declare it as an array.
Change your variable name.
Tip: never use generic name, and more never use reserved keywords, as time (which is also a function)