Error: st:2: attempt to call nil
code:
mon = peripheral.wrap("back")
rin = rs.getBoundledInput( "front" )
mon.setTextScale(2)
while true do
if colors.test( rin, colors.lime) == true then
mon.setCursorPos(1,1)
mon.clearLine()
mon.write("Zasilanie: 100%")
elseif colors.test( rin, colors.yellow) == true then
mon.setCursorPos(1,1)
mon.clearLine()
mon.write("Zasilanie: 75%")
elseif colors.test( rin, colors.lightBlue) == true then
mon.setCursorPos(1,1)
mon.clearLine()
mon.write("Zasilanie: 50%")
elseif colors.test( rin, colors.magneta) == true then
mon.setCursorPos(1,1)
mon.clearLine()
mon.write("Zasilanie: 25%")
else
mon.setCursorPos(1,1)
mon.clearLine()
mon.write("Zasilanie: 0%")
end
if colors.test( rin, colors.white) == true then
mon.setCursorPos(1,2)
mon.clearLine()
mon.write("Quarry: Wlaczone")
else
mon.setCursorPos(1,2)
mon.clearLine()
mon.write("Quarry: Wylaczone")
end
sleep(0)
end
I'm from poland and this code have Polish language












