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

[LUA][Error]I need help making a spawning machine.

Started by RandomShovel, 22 September 2012 - 05:08 AM
RandomShovel #1
Posted 22 September 2012 - 07:08 AM
I want to make a spawning machine, but I can't figure out why a string is unfinished. I'm new to lua, and have seen tutorials. I just can't figure out whats wrong with line 12. Thanks for the help!

os.pullEvent = os.pullEventRaw

term.clear()
term.setCursorPos(1, 1)
textutils.slowPrint("How many chickens would you like?")
sleep(1)
textutils.slowPrint("Enter amount: ")
term.setCursorPos(14, 2)

imput = read()
shell.run(redpulse, bottom, "..imput..", 1")
reboot(3)
Noodle #2
Posted 22 September 2012 - 07:18 AM
shell.run("redpulse", "bottom", imput, "1")
os.reboot()