Posted 21 November 2014 - 10:28 PM
When I try to execute this code it presents me with ''rednet:87: Number Expected''. Can someone please help?
term.clear()
rednet.open("front")
function refreshScreen()
term.scroll(3)
term.setCursorPos(1,1)
term.setTextColor(1)
print("Obscure Frameworks ")
print("Mainframe V_0.1 ")
computerID = os.getComputerID()
computerVersion = os.version()
computerLabel = os.getComputerLabel()
print("System Details: ")
print("System Version: "..computerVersion)
print(" Label: "..computerLabel)
print(" ID: "..computerID)
print("+--------System Log---------+")
end
refreshScreen()
while true do
event, senderId, message, protocol = os.pullEvent("rednet_message")
term.setCursorPos(1,23)
if senderId == null then
term.setTextColor(16384)
print("Network Error!")
print(" SID is null!")
print(" Packet Blocked.")
elseif message == null then
term.setTextColor(16384)
print("Network Error!")
print(" Message is null!")
print(" Packet Blocked.")
elseif protocol == null then
term.setTextColor(16384)
print("Network Error!")
print(" Protocol is null!")
print(" Packet Blocked.")
else
term.setTextColor(8)
print("Network Event!")
print(" SID: "..senderId)
print(" Message: "..message)
print(" Protocol: "..protocol)
if protocol ~= 4 then
rednet.send(protocol,message,senderId)
end
end
refreshScreen()
end