Code: Select all
/c local a = 42 game.print(a[1])
Code: Select all
Cannot execute command. Error: [string "local a = 42 game.print(a[1])"]:1: attempt to index local 'a' (a number value)
Code: Select all
/c local a = {42} game.print(next(a,2)[1])
Code: Select all
Cannot execute command. Error: invalid key to 'next'
This is reproduceable in mod script code, which can make tracking down certain types of bugs difficult. Derived from mod bug report here where no traceback was displayed or logged.