Posted 27 January 2014 - 12:05 PM
Hello, I am kinda new to computer craft. I was wondering if anyone can tell me why i keep on getting errors with the code
error : parallel :22: test:5: attempt to index ? (a function value)
error : parallel :22: test:5: attempt to index ? (a function value)
r = rednet
r.open("top")
function listen()
id,msg,dis=r.receive()
shell.run(msg)
end
function shell()
io.write("> ")
io.read()
end
while true do
parallel.waitForAny(shell, listen)
end