Posted 14 November 2012 - 03:11 PM
The code is
________________________________________________
When I put it the password it says Password Correct!
and the line after it says "Password:11: attempt to call nil"
I've tried to fix it over and over but it just wont work so I'm hoping to get an expert opinion on what I'm doing wrong
________________________________________________
local side = "right"
local password = "bacon
local opentime = 5
while true do
term.clear()
write("password: ")
local input == password then
term.clear()
print("Password Correct!")
rs.setoutput(right,true)
sleep(5)
else
print("password incorrect!")
sleep(2)
end
end
________________________________________________When I put it the password it says Password Correct!
and the line after it says "Password:11: attempt to call nil"
I've tried to fix it over and over but it just wont work so I'm hoping to get an expert opinion on what I'm doing wrong
Edited by