Skip to content

Instantly share code, notes, and snippets.

@LennyPenny
Created June 20, 2014 19:24
Show Gist options
  • Save LennyPenny/dface6d36256e466d191 to your computer and use it in GitHub Desktop.
Save LennyPenny/dface6d36256e466d191 to your computer and use it in GitHub Desktop.
FriendChatMsg_t msg = (FriendChatMsg_t)Marshal.PtrToStructure(cllBck.m_pubParam, typeof(FriendChatMsg_t));
EChatEntryType chtType = new EChatEntryType();
CSteamID chatter = new CSteamID();
UInt32 time = new UInt32();
Byte[] lol = new Byte[0x3000 + 1];
int iMsg = clientfriends.GetChatMessage(msg.m_ulFriendID, msg.m_iChatID.GetHashCode(), lol, cllBck.m_cubParam, ref chtType, ref chatter, ref time);
char[] lol2 = Encoding.UTF8.GetString(lol).ToCharArray();
Console.WriteLine(lol2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment