HelpAbout SendToServer

Posts 1–3 of 3 · Page 1 of 1
About SendToServer
Hello MPGH, I'm working with SendToServer on Crossfire and I'm trying to make params logger of message... I tried like this:
Code:
		for (int i = 0; i < msg->Size(); i++)
		{
			sprintf(MessagePacked, "%u", msg->Readuint8());
			ofile << "Params " << i << ": " << MessagePacked << endl;
		}
return it

Code:
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
and when I try to use it I recive error of invalid packets. Same for others ID

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);
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?