Jump to content




bios:338: [string "BlackAPI"]:2: 'do' expected. but i have a do!


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

#1 AndreWalia

  • Members
  • 294 posts
  • LocationSt.Louis, MO

Posted 06 December 2012 - 01:16 PM

function slowPrint(EoiL,ElkO)
  for i = 1,EoiL# do
    write(EoiL[i])
    sleep(ElkO)
  end
end
im trying to make a slow print function because the defualt one is too fast for me. I think the problem is EoiL# part. if it is then how do i split a string into a table?

#2 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

Posted 06 December 2012 - 01:41 PM

for i = 1,EoiL# do
--needs to be
for i = 1,#EoiL do
I assume you are getting the number of indexes in a table?

#3 AndreWalia

  • Members
  • 294 posts
  • LocationSt.Louis, MO

Posted 06 December 2012 - 01:57 PM

View PostCranium, on 06 December 2012 - 01:41 PM, said:

for i = 1,EoiL# do
--needs to be
for i = 1,#EoiL do
I assume you are getting the number of indexes in a table?
Haha beginner mistake! the # is before the table :P





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users