Posted 11 April 2015 - 09:44 AM
Hi i have build a computercraft program and i used it for Greg's SG
but if i use it 5 seconds later it says this: Too Long Without Yielding
what must i do
-CODE-
SG = peripheral.find("stargate")
mon = peripheral.wrap("top")
–SG + MON–
St, C = SG.stargateState()
LA = SG.localAddress()
RA = SG.remoteAddress()
function INF()
while true do
mon.setBackgroundColor(colors.white)
mon.setTextColor(colors.red)
mon.setCursorPos(1,1)
mon.write("The Stargate = "..St)
mon.setCursorPos(1,2)
mon.write("The Local Addres = "..LA)
mon.setCursorPos(1,3)
mon.write("Locked Chevrons = "..C)
mon.setCursorPos(1,4)
mon.write("Dialling To = "..RA)
end
end
INF()
but if i use it 5 seconds later it says this: Too Long Without Yielding
what must i do
-CODE-
SG = peripheral.find("stargate")
mon = peripheral.wrap("top")
–SG + MON–
St, C = SG.stargateState()
LA = SG.localAddress()
RA = SG.remoteAddress()
function INF()
while true do
mon.setBackgroundColor(colors.white)
mon.setTextColor(colors.red)
mon.setCursorPos(1,1)
mon.write("The Stargate = "..St)
mon.setCursorPos(1,2)
mon.write("The Local Addres = "..LA)
mon.setCursorPos(1,3)
mon.write("Locked Chevrons = "..C)
mon.setCursorPos(1,4)
mon.write("Dialling To = "..RA)
end
end
INF()