Posted 19 January 2013 - 11:47 AM
I thought this was right but it says error on line :25: '=' expected. here's the code…help:
os.pullEvent = os.pullEventRaw
print ("Welcome to the Power Corp. Control system.")
print ("Please enter security key:")
write ("")
password = io.read()
if password == "hiitsme123" then
term.clear()
print ("Welcome, what would you like to do.")
print ("1. Start Diamond Generator")
write ("")
idk = io.read()
if idk == "Start Diamond Generator" then
redstone.setOutput ("top", true )
print ("Diamond Generator Powering on.")
os.shutdown
else
os.shutdown
end
os.pullEvent = os.pullEventRaw
print ("Welcome to the Power Corp. Control system.")
print ("Please enter security key:")
write ("")
password = io.read()
if password == "hiitsme123" then
term.clear()
print ("Welcome, what would you like to do.")
print ("1. Start Diamond Generator")
write ("")
idk = io.read()
if idk == "Start Diamond Generator" then
redstone.setOutput ("top", true )
print ("Diamond Generator Powering on.")
os.shutdown
else
os.shutdown
end