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

I cant find the error

Started by techsavy, 22 July 2014 - 03:18 PM
techsavy #1
Posted 22 July 2014 - 05:18 PM
Im making a password door and i came out right i copy the program i used and i get this error bios:206 [string "password"]:13: '=' expected this is the code i used (this may be old version of code becuase im doing this in tekkit)
correctpass = "Fox2"

write("Administration Pass Required")

Pass = read()

if pass == (correctpass) then
write("Welcome")
redstone.setOutput("left",true)
sleep(5)
os.shutdown

else
write("Nope")
sleep(10)
end

Any help will be gladly apreciated
Cranium #2
Posted 22 July 2014 - 05:34 PM
It's os.shutdown(), not os.shutdown.
Remember, those parentheses are important when calling functions.
Neywiny #3
Posted 24 July 2014 - 01:15 AM
also, just in case, you should do
if pass == correctpass then
techsavy #4
Posted 25 July 2014 - 12:14 AM
Thanks ninja that helped
Cranium #5
Posted 25 July 2014 - 12:16 AM
Double check that name there, buddy.
Names are displayed in the blue bar, not directly above the picture.
Bomb Bloke #6
Posted 25 July 2014 - 04:46 AM
Whatever you say, #5. ;)/>