Posted 11 June 2012 - 11:05 PM
Hey there, I have been encountering this error for several days could someone tell me WHY it is happening and HOW to correct it.
Thanks in advance and I fully expect that this is the derpiest error and I have just forgotten something but I have looked everywhere and I cannot find a solution.
Thanks in advance and I fully expect that this is the derpiest error and I have just forgotten something but I have looked everywhere and I cannot find a solution.
printMenu()
openDoor()
closeDoor()
function printMenu()
print("CONTROL PANEL")
print("PRESS 1 TO OPEN DOOR")
print("PRESS 2 TO CLOSE DOOR")
end
function openDoor()
while true do
key, selection = os.pullEvent()
if selection == "1" then
rs.setBundledOutput("top",colours.white)
end
function closeDoor()
while true do
key, selection = os.pullEvent()
if selection == "2" then
redstone.setBundledOutput("top", white(0))
end
end