while true do
local event = os.pullEvent("redstone")
local greenState = rs.testBundledInput("left", colors.green)
if greenState == true then
redstone.setOutput("right", true)
sleep(2)
redstone.setOutput("right", false)
redstone.setOutput("back", true)
sleep(1)
redstone.setOutput("back", false)
os.shutdown
else
print("Please try again later")
os.shutdown
end
end
"=" expected error
Started by KingofGamesYami, Feb 12 2013 11:46 AM
2 replies to this topic
#1
Posted 12 February 2013 - 11:46 AM
i got an error in line 12, idk what it is
#2
Posted 12 February 2013 - 11:56 AM
Split into new topic; moved to Ask a Pro; given new title.
Change both instances of os.shutdown to os.shutdown() and the problem should go away.
Change both instances of os.shutdown to os.shutdown() and the problem should go away.
#3
Posted 12 February 2013 - 01:11 PM
EDIT: ninja'd by Lyqyd
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











