I can not seem to get this code to work correctly. Background: Every intercom has a different sname like "outside intercom". I get bad index errors
Send_To(msg as text)
set src in view(1)
for(var/obj/electronics/messagenet/reciever in world)
globalintercom[reciever.sname] = reciever
intercomchooser += reciever.sname
var/chose = input("Which intercom would you like to broadcast to?","Intercom Chooser") in intercomchooser + "nothing"
var/obj/reciever = globalintercom[chose]
view(reciever) << "[usr]:MessageNet:[sname] sends, [msg]"