Posted 03 September 2012 - 06:47 PM
i am getting the same error each time i try this!
'bios:206: [string "startup"]:12: '=' expected
?!?!?
what does this mean! any help is appreciated!
print("——————————")
print("WELCOME TO THE VOLCANIC TESTING CENTRE")
print("crocodile.inc")
print("please enter password to proceed to the menu interface")
input = io.read()
if input == "crocodile" then
y = "password correct"
else
print("INCORECT PASSWORD")
sleep(3)
os.reboot
end
while k == "password correct" do
while x ~= "exit" do
print("——————————")
print("MAIN MENU")
print('To access the lighting menu interface enter "lights"')
print('to access the generator menu interface enter "generators"')
print("——————————")
x=io.read()
if x == "lights" then
while y ~= "exit" do
print("——————————")
print("LIGHTING MENU")
print('To turn on the lighting system enter "on"')
print('To turn off the lighting system enter "off"')
print('To return to the Main Menu enter "exit"')
print("——————————")
y=io.read()
if y == "on" then
rednet.open("left")
rednet.send(13, "lights on")
rednet.close("left")
elseif y == "off" then
rednet.open("left")
rednet.send(13, "lights off")
rednet.close("left")
end
end
end
end
'bios:206: [string "startup"]:12: '=' expected
?!?!?
what does this mean! any help is appreciated!
print("——————————")
print("WELCOME TO THE VOLCANIC TESTING CENTRE")
print("crocodile.inc")
print("please enter password to proceed to the menu interface")
input = io.read()
if input == "crocodile" then
y = "password correct"
else
print("INCORECT PASSWORD")
sleep(3)
os.reboot
end
while k == "password correct" do
while x ~= "exit" do
print("——————————")
print("MAIN MENU")
print('To access the lighting menu interface enter "lights"')
print('to access the generator menu interface enter "generators"')
print("——————————")
x=io.read()
if x == "lights" then
while y ~= "exit" do
print("——————————")
print("LIGHTING MENU")
print('To turn on the lighting system enter "on"')
print('To turn off the lighting system enter "off"')
print('To return to the Main Menu enter "exit"')
print("——————————")
y=io.read()
if y == "on" then
rednet.open("left")
rednet.send(13, "lights on")
rednet.close("left")
elseif y == "off" then
rednet.open("left")
rednet.send(13, "lights off")
rednet.close("left")
end
end
end
end