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

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

Started by Anora, 12 May 2012 - 01:48 PM
Anora #1
Posted 12 May 2012 - 03: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
Anora #2
Posted 12 May 2012 - 03:55 PM
fixed it… missed something