Posted 14 December 2013 - 07:45 PM
hello. im getting the error "rednet: 43: No open sides"
The code is for a firewall that i am using for my bank system.
The code is for a firewall that i am using for my bank system.
realid = 5
function spoof(nID)
print("start spoof")
local func = loadstring("return "..nID)
os.getComputerID = func
os.computerID = func
end
function unspoof()
print("end spoof")
spoof(5)
end
--firewall start
rednet.open("top")
print("1")
while true do
var1, var2, var3 = rednet.receive()
print("id = "..var1)
print("msg = "..var2)
print("distance = "..var3)
print("2")
if var1 == 9 then
print("3")
rednet.open("back")
print("4")
spoof(var1)
print("5")
rednet.send(4, var2)
print("6")
else
rednet.send(var1, "deny")
print("7")
end
end
but for some reason it will not work and keeps giving me the same error and sorry for my horrible formatting. Any help would be much appreciated.