TCProblem

Blitz3D Forums/Blitz3D Beginners Area/TCProblem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

probably you need to have a closer look at the manual. of course you need to read the stream there.

while not eof(x)
my_data=readint(x)
wend

tho I have to say X is a bad name for a stream. You should use something more descriptive, like eg:

stream=AcceptTCPStream(game)

and then:

while eof(stream)=0
x=readint(stream)
wend

so now you can use x as the thing it was meant to be, a coordinate, and you won't confuse it with a stream handle any longer.