Sorry about that
server
char tempstrX[] = "\n";
char tempstrY[] = "\n";
char tempstrZ[] = "\n";
int connection = 0;
int connections = 0;
int playerleft = 0;
while ( LoopGDK ( ) )
{
int msgfrom = NetMessageFrom();
connection = NetPlayerJoined();
if (connection != 0)
{
NetPutString(MultiSyncServerName);
NetSend(connection);
connections++;
}
playerleft = NetPlayerLeft();
if (playerleft)
{
connections--;
}
while(NetGetMessage()){
NetGetString(tempstrX,256);
NetGetString(tempstrY,256);
NetGetString(tempstrZ,256);
}
Client
while(LoopGDK())
{
char buf[256];
fx = dbObjectPositionX(iPlayer1);
sprintf(buf,"%f",fx);
char bufy[256];
fy = dbObjectPositionX(iPlayer1);
sprintf(bufy,"%f",fy);
char bufz[256];
fz = dbObjectPositionX(iPlayer1);
sprintf(bufz,"%f",fz);
if(NetConnected())
{
if(dbUpKey())
{
NetPutString(buf);
NetPutString(bufy);
NetPutString(bufz);
NetSendAll();
NetSend(0);
}
}