Posted 15 June 2012 - 11:42 PM
Every time i run this code:
I get the "bios:206: [string "startup"]:10: '=' expected"
error.
Help?
local side = "left"
local password = "bacon"
local opentime = 5
term.clear()
term.setCursorPos(1,1)
write("Password: ")
local input = read("*")
if input == (password) then
term.clear()
term.setCursorPos(1,1)
print("Password correct!")
rs.setOutput(side,true)
sleep(5)
rs.setOutput(side,false)
os.reboot()
else
term.clear()
term.setCursorPos(1,1)
print("Password incorrect!")
sleep(2)
os.reboot()
end
I get the "bios:206: [string "startup"]:10: '=' expected"
error.
Help?