Jump to content




"=" expected error


  • You cannot reply to this topic
2 replies to this topic

#1 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

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


#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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.

#3 tesla1889

  • Members
  • 351 posts
  • LocationSt. Petersburg

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