Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NetMessage.buffer[num].writeBuffer[++position] = (byte)prefix2.Length;
- for (int i = 0; i < prefix2.Length; i++)
- {
- NetMessage.buffer[num].writeBuffer[++position] = (byte)(prefix2[i] & 255); // string is utf-16 (unicode)
- NetMessage.buffer[num].writeBuffer[++position] = (byte)(prefix2[i] << 4);
- }
Add Comment
Please, Sign In to add comment