Posted 09 March 2015 - 02:26 AM
It keeps returning that line 33 needs a 'then'. There is a 'then' so whats the problem?
rednet.open("top")
disp = peripheral.wrap("right") --insert side of monitor
disp.clear()
-- screen display
disp.setCursorPos(18,1)
disp.write("X")
disp.setCursorPos(1,1)
disp.write("O Forward")
disp.setCursorPos(1,2)
disp.write("O Back")
disp.setCursorPos(10,1)
disp.write("O Left")
disp.setCursorPos(10,2)
disp.write("O Right")
disp.setCursorPos(1,3)
disp.write("O Up")
disp.setCursorPos(1,4)
disp.write("O Down")
disp.setCursorPos(10,3)
disp.write("O Break")
disp.setCursorPos(10,4)
disp.write("O Dig")
disp.setCursorPos(5,5)
disp.write("<- O O ->")
-- remote commands
while true do
event, side, x, y = os.pullEvent()
if x = 18 and y = 1 then
disp.clear()
disp.setCursorPos(3,3)
disp.write("Shutting Down...")
os.sleep(2)
os.shutdown()
else
rednet.send(7, x)
rednet.send(7, y)
end
end