Posted 15 June 2012 - 11:43 PM
Hi guys, im new to the whole redpower scene and im having some trouble with my program. I want to be able to enable and disable a specific color to activate my circuit, but the way I have followed has led me to a 'BIT:40' error.
Heres my code:
I can Activate the bundled wire but not disable the various colors,
thanks Dan :(/>/>
Heres my code:
term.clear()
term.setCursorPos(17,1)
print "Light Control"
term.setCursorPos(1,2)
print ""
print "1. Turn On Dancefloor"
print "2. Turn Off Dancefloor"
print "3. Turn On Bar Lights"
print "4. Turn Off Bar Lights"
input = read()
if input == "1" then
a = colors.combine(a,colors.blue)
rs.setBundledOutput("back",a)
print "Dancefloor Activated"
sleep(3)
shell.run("startup")
end
if input == "2" then
[color=#ff0000]b= colors.subtract(x,colors.)
rs.setBundledOutput("back",:)/>/>[/color]
print "Dancefloor Is Now De-Activated"
sleep(3)
shell.run("startup")
end
if input == "3" then
c = colors.combine(c,colors.lime)
rs.setBundledOutput("back",c)
print "Bar Lights Are Now Turned On"
sleep(3)
shell.run("startup")
end
if input == "4" then
[color=#ff0000]d = colors.subtract(d,colors.lime)
rs.setBundledOutput("back",d)[/color]
print "Bar Lights Are Now Turned Off"
sleep(3)
shell.run("startup")
else
print "Please Choose Another Option!"
sleep(2)
shell.run("startup")
end
I can Activate the bundled wire but not disable the various colors,
thanks Dan :(/>/>