Posted 28 September 2016 - 03:51 PM
I want to make a program that ask if i want to shut down or start up the reactor by sending a redstone signal.
I have made a startup program but some errors have occoured due to my lack of "skill"
The error code that i get: [String "startup"]:4: ´)´ expected
I'm short on time so, any quick response is highly appriciated
I have made a startup program but some errors have occoured due to my lack of "skill"
The error code that i get: [String "startup"]:4: ´)´ expected
on = "on"
off = "off"
close = "close"
print ("type "on" to enable, "off" to shut down")
if input == on then
print ("Nuclear reactor enabled.")
rs.setOutput ("back", true)
elseif input == off then
print ("Nuclear reactor disabled")
rs.setOutput ("back", false)
elseif input == close then
print ("GoodBye")
shell.run("close")
else
print ("?")
sleep(2)
os.shutdown
end
I'm short on time so, any quick response is highly appriciated