Цитата:
Сообщение от crayonnet
Awiion
How To fix SM_SERVER_MESSAGE_ANNOUNCE
PHP код:
internal class SM_SERVER_MESSAGE_ANNOUNCE : SendBaseGamePacket { private Channel _channel;
public SM_SERVER_MESSAGE_ANNOUNCE(int channelId) { base.makeme(); this._channel = ChannelInfoHolder.getChannel(channelId); }
protected internal override void write() { base.writeH(0xa0e); base.writeD(1); base.writeH((short) this._channel.getAnnounceSize()); base.writeS(this._channel.getAnnounce(), this._channel.getAnnounceSize()); base.writeD(0); }
|
Код:
public override void WriteImpl()
{
Write<int>(channel.Announce != null);
Write<short>(channel.Announce.Length);
WriteUnicode(channel.Announce);
}