Jump to content




execute:21: bad argument: int expected, got table


  • You cannot reply to this topic
1 reply to this topic

#1 Anora

  • Members
  • 19 posts

Posted 12 May 2012 - 02:48 PM

hi, im working on a program that uses redstone outputs to redstone torches.

i get an error saying: execute:21: bad argument: int expected, got table

i cant seem to figure out whats wrong

the program's completly writen but can seem to figure out whats causing the error

term.clear()
term.setCursorPos(1,1)
print("Do you wish to run the tree farm?")
print("yes")
print("no")
input = read()
answer = "yes"
shell.run("clear")
if input == answer then
print("Watch the tree's get made and choped down")
rs.setBundledOutput("back", colors.magenta)
sleep(2.0)
rs.setBundledOutput("back", colors.lightBlue)
sleep(2.0)
rs.setBundledOutput("back", colors.white)
sleep(2.0)
rs.setBundledOutput("back", colors,orange)
sleep(10.0)
shell.run("execute")
else
print("Than you fore using Tree farm")
sleep(1.0)
print("END OF LINE.")
shell.run("execute")
end


#2 Anora

  • Members
  • 19 posts

Posted 12 May 2012 - 02:55 PM

fixed it... missed something





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users