Цитата:
Сообщение от PISTOLA
bzmproject, this UDP3 java structure is from my source, it was me who created it, just to remember not to remove the credits.
http://prntscr.com/ja428n
|
not work my friend
ss.buffer.writeByte(opc);
ss.buffer.writeShort(subHead.slot);
ss.buffer.writeShort(subHead.length);
ss.buffer.writeInt(subHead.flag);
if ((subHead.flag & 0x4) > 0)
{
UDP_PosRotation half = new UDP_PosRotation(read.readUnsignedShort(), read.readUnsignedShort(), read.readUnsignedShort(), read.readUnsignedShort(), read.readUnsignedShort(), read.readUnsignedShort());
p.pos = half;
ss.buffer.writeShort(half.posX);
ss.buffer.writeShort(half.posY);
ss.buffer.writeShort(half.posZ);
ss.buffer.writeShort(half.camX);
ss.buffer.writeShort(half.camY);
ss.buffer.writeShort(half.area);
Software.setColor(Color.GREEN, Color.BLACK);
MapLocation map = MapsLocalXML.gI().get(r.map, half.area);
if (map != null)
{
RoomController.gI().sendPacket(new REQUEST_GAME_SEND_ACK(r.roomId, r.serverId, r.channelId, p.slot, String.valueOf(map.local)));
System.out.println(" [" + map.index + "] " + map.local);
System.out.flush();
}
Software.setColor(Color.WHITE, Color.BLACK);
subHead.flag ^= 4;
} Code: Java