Posted 10 September 2012 - 05:13 AM
So what i want is for my turtle to run the "mine" program i wrote. Here's what i typed:
(sorry idk how to do that cool thing people always put code in)
os.run({}, "mine")
and the error i get its:
"mine:1: attempt to index ? (a nil value)
I'm totally lost please help.
Or if you could think of some easier way to make this loop:
shell.run("go", "down", "100")
shell.run("excavate", "15")
shell.run("go", "up", "100")
os.sleep(300)
I'm thinking that this:
shell.run("go", "down", "100")
shell.run("excavate", "15")
shell.run("go", "up", "100")
os.sleep(300)
os.run({}, "mine")
would run mine over and over again.
Oh btw that sleep for 300 seconds is so it has time to have what's inside pumped out.
(sorry idk how to do that cool thing people always put code in)
os.run({}, "mine")
and the error i get its:
"mine:1: attempt to index ? (a nil value)
I'm totally lost please help.
Or if you could think of some easier way to make this loop:
shell.run("go", "down", "100")
shell.run("excavate", "15")
shell.run("go", "up", "100")
os.sleep(300)
I'm thinking that this:
shell.run("go", "down", "100")
shell.run("excavate", "15")
shell.run("go", "up", "100")
os.sleep(300)
os.run({}, "mine")
would run mine over and over again.
Oh btw that sleep for 300 seconds is so it has time to have what's inside pumped out.