Not sure if this gonna help you.
https://www.mpgh.net/forum/showthread.php?t=457134
Hello MPGH, I'm working with SendToServer on Crossfire and I'm trying to make params logger of message... I tried like this:
return itCode:for (int i = 0; i < msg->Size(); i++) { sprintf(MessagePacked, "%u", msg->Readuint8()); ofile << "Params " << i << ": " << MessagePacked << endl; }
and when I try to use it I recive error of invalid packets. Same for others IDCode:Message: 131 // IT's RADIO Message Params 0: 0 // i think this should be 131 Params 1: 11 Params 2: 104 Params 3: 46 Params 4: 44 Params 5: 13 Params 6: 6
Code:Msg.Writeuint8(131); Msg.Writeuint8(0); Msg.Writeuint8(11); Msg.Writeuint8(104); Msg.Writeuint8(46); Msg.Writeuint8(44); Msg.Writeuint8(13); Msg.Writeuint8(6);
Public Hack:Jun 2012 / Dec 2017
Not sure if this gonna help you.
https://www.mpgh.net/forum/showthread.php?t=457134