no mám se posouvat v poli, receiveBytes,,, ja uz fakt nevim,,,docela to potrebuji .......skousim neco takoveho
if(OnlinePlayers > 0)
{
array<String^,2>^ data = gcnew array<String^,2>(OnlinePlayers,4);
udpClient->Connect(serverIP, serverPORT);
array<Byte>^sendBytes = Encoding::ASCII->GetBytes( packet );
udpClient->Send(sendBytes, sendBytes->Length );
IPEndPoint^ RemoteIpEndPoint = gcnew IPEndPoint( IPAddress::Any,0 );
array<Byte>^receiveBytes;
receiveBytes = udpClient->Receive( RemoteIpEndPoint );
int posun = 0;
for(int i=0; i<OnlinePlayers; i++)
{
receiveBytes = receiveBytes >> posun;
posun = posun+sizeof(data);
data[i,0] = Convert::ToString(ord(Encoding::ASCII->GetString(receiveBytes,11,4)));
int nl = Convert::ToInt32(ord(Encoding::ASCII->GetString(receiveBytes,14,2)));
data[i,1] = Encoding::ASCII->GetString(receiveBytes,15,nl);
}
}