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

Hijacked topic question.

Started by plumpy99, 16 September 2013 - 06:14 PM
plumpy99 #1
Posted 16 September 2013 - 08: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
Lyqyd #2
Posted 16 September 2013 - 10: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.
campicus #3
Posted 17 September 2013 - 09:56 AM
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.