daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Mar 8th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void SendMessage(byte ToID, string Message)
  2. {
  3.     Message = this.AddNulls(Message, MessageLength);
  4.     BZPacket Packet = new BZPacket(BZMessageType.MsgMessage);
  5.     byte[] MessageBytes = System.Text.Encoding.ASCII.GetBytes(Message);
  6.     byte[] Data = new byte[Message.Length + 1];
  7.     Data[0] = ToID;
  8.     Array.Copy(MessageBytes, 0, Data, 1, Message.Length);
  9.     Packet.Data = Data;
  10.     this.SendPacket(Packet);
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top