Posted 27 April 2012 - 10:03 PM
I have tried everything to resolve this problem
nothing has worked
here is my whole code
can you tell me what ive done wrong
this is my first code, and it opens a piston door
could you please advise on why I keep getting this error:
bios:206: [string "startup"] :21: '=' expected
and anything else i might of got wrong
nothing has worked
here is my whole code
can you tell me what ive done wrong
pass = allblacks
print ("welcome user.")
sleep (1)
print ("please enter password.")
write ("password: ")
password = read()
if password == pass then
print ("processing.")
sleep (0.5)
print ("processing..")
sleep (0.5)
print ("processing...")
sleep (1)
print ("Access GRANTED")
sleep (1)
print ("Door open for 15 seconds")
setOutput ("back", true)
sleep (15)
os.shutdown
end
else
print ("processing.")
sleep (0.5)
print ("processing..")
sleep (0.5)
print ("processing...")
sleep (1)
print ("Access Denied")
SLEEP (2)
os.Shutdown
end
this is my first code, and it opens a piston door
could you please advise on why I keep getting this error:
bios:206: [string "startup"] :21: '=' expected
and anything else i might of got wrong