Posted 17 May 2012 - 04:05 PM
Hi,
Ive made a little program (using with wireless redstone mod) that can turning on and off the lights, and let the lights flicker like a alarm sign.
But when i start the program it says bios:206: [string "light"]:23: unexpected symbol
i know what it means i guess, but i havent found any mistake on line 23 or anywhere in the code. (but it have to be…)
maybe can somebody find it, and then solve the problem :P/>/>
heres the code:
print "Loading the light-system…"
sleep(1)
print "Loading Done!"
print "Choose an option:"
term.setCursorPos (5,5)
print "a. Lights On."
print "b. Lights Off."
print "c. SOS Sign."
on = read()
if on == "a" then
sleep(1)
print "Lights on!"
print "Clearing Screen…"
redstone.setOutput ("bottom", true)
sleep(5)
term.clear()
term.setCursorPos (1,1)
elseif
if on == "b" then
sleep(1)
print "Lights off!"
print "Clearing Screen…"
redstone.setOutput ("bottom", false)
sleep(5)
term.clear()
term.setCursorPos (1,1)
elseif
if on == "c" then
print "SENDING OUT SOS SIGN!"
sleep(1)
print "SOS SIGN SENDED!"
print "Terminate with CTRL T"
while true do
redstone.setOutput ("bottom", true)
sleep(1)
redstone.setOutput ("bottom", false)
else
print "Unknown Command."
end
i hope somebody can figure it out, i know somebody can :D/>/>
thx for reading my post ;p
- CyanCrafter
Ive made a little program (using with wireless redstone mod) that can turning on and off the lights, and let the lights flicker like a alarm sign.
But when i start the program it says bios:206: [string "light"]:23: unexpected symbol
i know what it means i guess, but i havent found any mistake on line 23 or anywhere in the code. (but it have to be…)
maybe can somebody find it, and then solve the problem :P/>/>
heres the code:
print "Loading the light-system…"
sleep(1)
print "Loading Done!"
print "Choose an option:"
term.setCursorPos (5,5)
print "a. Lights On."
print "b. Lights Off."
print "c. SOS Sign."
on = read()
if on == "a" then
sleep(1)
print "Lights on!"
print "Clearing Screen…"
redstone.setOutput ("bottom", true)
sleep(5)
term.clear()
term.setCursorPos (1,1)
elseif
if on == "b" then
sleep(1)
print "Lights off!"
print "Clearing Screen…"
redstone.setOutput ("bottom", false)
sleep(5)
term.clear()
term.setCursorPos (1,1)
elseif
if on == "c" then
print "SENDING OUT SOS SIGN!"
sleep(1)
print "SOS SIGN SENDED!"
print "Terminate with CTRL T"
while true do
redstone.setOutput ("bottom", true)
sleep(1)
redstone.setOutput ("bottom", false)
else
print "Unknown Command."
end
i hope somebody can figure it out, i know somebody can :D/>/>
thx for reading my post ;p
- CyanCrafter