This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
littlediobolic's profile picture

bios:206: [string "startup'"]:3: '=' expected problem

Started by littlediobolic, 19 September 2012 - 11:59 PM
littlediobolic #1
Posted 20 September 2012 - 01:59 AM
password = "Teh_Candy"
print ("FreeCandy Lock v1.0")
write Password:
input = read()
if input == redstone.setOutput("right",true)
sleep(3)
os.reboot()
else
print("Incorrect Password")
sleep(10)
os.reboot()

Idk Whats Wrong Please Help
justync7 #2
Posted 20 September 2012 - 02:10 AM
its write("Password:") not write Password:
littlediobolic #3
Posted 20 September 2012 - 02:21 AM
now it says then expected

nvm figured it out
Lettuce #4
Posted 20 September 2012 - 02:45 AM
Post it in "Ask a Pro" next time. You'll get help MUCH faster.
Zudo #5
Posted 30 October 2012 - 09:22 AM

password = "Teh_Candy"
print ("FreeCandy Lock v1.0")
write("Password:")
input = read("x")
if input == password then
 redstone.setOutput("right",true)
 sleep(3)
end
os.reboot()
else
 print("Incorrect Password")
 sleep(10)
 os.reboot()
end
remiX #6
Posted 30 October 2012 - 11:05 AM

password = "Teh_Candy"
print ("FreeCandy Lock v1.0")
write("Password:")
input = read("x")
if input == password then
redstone.setOutput("right",true)
sleep(3)
end
os.reboot()
else
print("Incorrect Password")
sleep(10)
os.reboot()
end

It has 2 ends :?
Zudo #7
Posted 30 October 2012 - 03:48 PM
sIdEkIcK_ said:

Stop following me sidekick!!!!!
remiX #8
Posted 30 October 2012 - 05:09 PM
sIdEkIcK_ said:

Stop following me sidekick!!!!!

:P/>/> :P/>/>