This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Heroj04's profile picture

[JVM] arrayindexoutofbounds

Started by Heroj04, 30 September 2012 - 03:40 AM
Heroj04 #1
Posted 30 September 2012 - 05:40 AM
Well I can't access my code but I would like to know what can cause an error like in the title, because I'm getting it on one of my programs.
Luanub #2
Posted 30 September 2012 - 06:51 AM
You've probably got a function nested within itself

example:

local function example()
example()
end

Nesting is always bad. Use loops instead.

local function example()
--insert code here
end

while true do
example()
end

Or some other loop variation.
Heroj04 #3
Posted 30 September 2012 - 08:53 AM
Yea i think i do thanks