Posted 19 December 2012 - 05:03 PM
I'm trying to edit the startup program to ask for a username and password, and when both are correct that it sends a redpulse on the right to a piston door setup for 20 seconds. Without the redpulse string the program works fine, when both the username and pass are good, it unlocks the shell, and when they are bad it says goodbye and shuts down. but with the redpulse string in there everytime i run Startup, it gives me i get a Bios:206: [string "startup"]:7 '=' expected ,i am completely new to computercraft and programing in itself. i have looked through the tutorial thread and couldn't find a solution to my problem in particular. Please check my code and explain what i code do to fix it.
write"Username:"
input = io.read()
print"Password:"
input = io.read()
if input2 == "password" and input == "admin" then
print("welcome")
redpulse right 1 20
else
print"goodbye"
sleep(2)
os.shutdown
end
Edited by