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
Hijacked topic question.
Started by plumpy99, Sep 16 2013 07:14 PM
2 replies to this topic
#1
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.
#2
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.
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
Posted 17 September 2013 - 08:56 AM
plumpy99, 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











