Posted 29 April 2012 - 01:16 AM
So if you ever look at the Programs library you'll most likely know that I'm making a chat like program to chat world wide for server, or singer player (If you want to talk to yourself) but im trying to do allow the message to send, when im on single player testing if it works it says "bios:267: Attempt to write to global" i dont get it! here is my code
print("Welcome to Chatv.2")
rednet.open("back")
print("Please write your username so people now who you are below, dont worry you dont have to type your username everytime, :TIP: Put : after your username")
local NAME = read()
print("Alright")
print("Now what would you like to say?")
local message = read()
rednet.broadcast(NAME,message)
while true do
local message = read()
rednet.broadcast(NAME,message)
end