Jump to content




[JVM] arrayindexoutofbounds


  • You cannot reply to this topic
2 replies to this topic

#1 Heroj04

  • Members
  • 32 posts

Posted 30 September 2012 - 04: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.

#2 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 30 September 2012 - 05: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.

#3 Heroj04

  • Members
  • 32 posts

Posted 30 September 2012 - 07:53 AM

Yea i think i do thanks





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users