Posted 27 February 2012 - 10:28 AM
I really am a beginner, so probably there are some mistakes. It says "expecting "then"" at line 12, though there already is a then.
Can someone figure out please?
Can someone figure out please?
print("checking data")
sleep(0.5)
print("checking data.")
sleep(0.5)
print("checking data..")
sleep(0.5)
print("checking data...")
sleep(0.5)
redstone.getInput(a,;)/>/>
if b==true then
clearScreen()
if a="right" then
print("Reactor battery full")
elseif a="left" then
print("Generator battery full")
end
if read()="alarm" then
redstone.setOutput("back",true)
elseif read()="alarm off" then
redstone.setOutput("back",false)
elseif read()="reboot" then
os.reboot()
end
else
print("no battery full")
if read()="alarm" then
redstone.setOutput("back",true)
elseif read()="alarm off" then
redstone.setOutput("back",false)
elseif read()="reboot" then
os.reboot()
end
end