Quote Originally Posted by yassersoft
Hello every pascal game programmer. My problem is with the tcpClient and tcpServer components. I cant send or receive more than 1 line of message using Send() function. Fox example:
I want the server always send to all players my current position on two line of text posx and posy. But that don¬Ąt happend. Could you help me, please
If you are sending strings, maybe use 1 line at the time but something like this
[pascal]send( format('%d;%d',[posx,posy]) );[/pascal]
You will just need to parse where the ';' is and read integers next to them.

But because games send much more kinds of msgs, you may need to send more info like type of message
[pascal]send( format('POS;%d;%d',[posx,posy]) );[/pascal]