allowed = false
term.clear()
term.setCursorPos(1,1)
print("PC"..os.getComputerID().."/ROM/ENTRY")
print("DENIED; ENTER ACCESS CODE")
rs.setOutput("top",false)
rs.setOutput("bottom",false)
rs.setOutput("left",false)
rs.setOutput("right",false)
rs.setOutput("front",false)
rs.setOutput("back",false)
sleep(0)
term.setCursorPos(34,1)
print(os.time())
term.setCursorPos(17,10)
write("USERNAME: ")
term.setCursorPos(34,20)
if allowed = false then
print("ACCESS STATE: FALSE")
if allowed = true then -- Problem is here, getting "bios:328: [string "startup"]:18: then expected
print("ACCESS STATE: TRUE")
end
Now this isn't really a problem but its been wasting about 30 minutes of my time
I need a grid to show where the Y and Z cords are for term.setCursorPos(?,?)
Now I need to know why sleep does not work in while true do functions
while true do
print("hi")
sleep(3) -- It always is skipped in while true do.
end
Please tell me how to fix.












