Posted 30 April 2015 - 04:41 PM
Hello, I would like to ask for help with my code, I am a beginner at Computercraft and have a problem with this code, whenever I run it it gives me an error
- os.pullEvent = os.pullEventRaw
rednet.open("top")
function lancp()
term.clear
term.setCursorPos(1,1)
x = read()
if
x == 1
then
rednet.broadcast("1")
end
if
x == 2
then
rednet.broadcast("2")
end
if
x == 3
then
rednet.broadcast("3")
end
if
x == 999666
then
rednet.broadcast("999666")
end
end
repeat lancp() until x == nobodywillguessthisvalue