Jump to content




Hijacked topic question.


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

#1 plumpy99

  • New Members
  • 2 posts

Posted 16 September 2013 - 07:14 PM

Need help with this code. It expects '=' on line 19 (last line) and I know it says eof, it expected that when it was end.
rednet.open(back)
repeat
texutils.slowWrite("Enter Password: ")
password = read()
until
password == "boom"
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Correct")
print("3")
sleep(1)
print("2")
sleep(1)
print("1")
sleep(1)
textutils.slowPrint("BOOM!!!")
rednet.broadcast("a")
end


#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 16 September 2013 - 09:14 PM

Split into new topic.

Go read the sticky posts. If you had, you'd have known where to post your question (hint: not in someone else's question thread).

Remove the end statement at the end. And that should have been throwing an '<eof>' expected error.

#3 campicus

  • Members
  • 164 posts

Posted 17 September 2013 - 08:56 AM

View Postplumpy99, on 16 September 2013 - 07:14 PM, said:

Need help with this code. It expects '=' on line 19 (last line) and I know it says eof, it expected that when it was end.
rednet.open(back)
repeat
  texutils.slowWrite("Enter Password: ")
  password = read()
until password == "boom"
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Correct")
print("3")
sleep(1)
print("2")
sleep(1)
print("1")
sleep(1)
textutils.slowPrint("BOOM!!!")
rednet.broadcast("a")

look how easy it is to format your code. Amazing. You would have seen that the 'end' didn't need to be there so quickly.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users