This code should send a message, but it dosn't. I know that the players are connected because I can see their names.
What's wrong with it?
DO
if net message exists()
get net message
mtype = net message type()
if mtype=3
m$ = net message string$()
endif
endif
text 10,50,m$
if keystate(50)=1 then EnterMessage=1
if EnterMessage=1 then gosub EnterMessage
LOOP
EnterMessage:
if keystate(14)
if len(text$) > 0 then text$ = left$(text$,len(text$)-1)
cls
else
if returnkey()
EnterMessage=0
cls
text 10,10,text$
send net message string 0,text$
else
oldkey$ = newkey$
newkey$ = inkey$()
if newkey$ oldkey$ then text$ = text$ + newkey$
text 10,30,text$
endif
endif
return