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.
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.