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
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