Posted 14 October 2014 - 12:57 AM
I am getting this error when i am attempting to run my program
bios:339: [string "ad"]:9: '<eof>' expected
My program displays certain messgaes if keywords are sent to it via rednet.
bios:339: [string "ad"]:9: '<eof>' expected
My program displays certain messgaes if keywords are sent to it via rednet.
print("which room? ")
local input, room = read("*")
room1 = "The " .. room .. "is "
lockdown = " WARNING The " .. room .. " Has been Sealed "
print(" The room is now set to" .. room)
term.clear()
rednet.open("top")
end
while true do
local id, msg = rednet.receive()
if msg == "open"
then term.setTextColor(colors.green)
print(room1 .. msg)
end
elseif msg == "Closed"
then term.setTextColor(colors.yellow)
print(room1 .. msg)
end
elseif msg == "clear"
then term.clear()
end
elseif msg == "lockdown"
then term.setTextColor(colors.red)
print(lockdown)
end
else end