This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
KingofGamesYami's profile picture

"=" expected error

Started by KingofGamesYami, 12 February 2013 - 10:46 AM
KingofGamesYami #1
Posted 12 February 2013 - 11:46 AM
i got an error in line 12, idk what it is

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
Lyqyd #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.
tesla1889 #3
Posted 12 February 2013 - 01:11 PM
EDIT: ninja'd by Lyqyd