Quote: "However, once in a while I get an error message: "Severe Exception: Error in program""
I'm still not sure what causes that. It could have something to do with a player disconnecting and then trying to access some data relating to them. I'll eventually figure it out.
Quote: "What does this mean? "
It means what you think.
Quote: "If that is the case then I have to use some other much more complicated method of gathering strings(ex.entry$())?"
I would do it like this:
Firstly, create an array to store some values you need to be able to access from anywhere in the program:
`-------------------------------
dim globals$(2)
`Layout of globals array ------
0 . . . . . . . . Text entered
1 . . . . . . . Return key down
`------------------------------
`-------------------------------
Call this function every loop to retrieve input from the user:
function HandleEntry()
new$=entry$()
length = len($new)
for a=1 TO length
if asc(mid$(new$,a))=8
globals$(0)=left$(globals$(0),len(globals$(0))-1)
else
globals$(0) = globals$(0)+mid$(new$,a)
endif
next a
clear entry buffer
endfunction
Then to send I would probably do something like this:
if returnkey()
if globals$(1)=""
TPutString(globals$(0))
TSendAll
globals$(0) = ""
globals$(1) = "1"
endif
else
globals$(1) = ""
endif
If you want to display the currently entered data very loop just output globals$(0), which contains the text.