I was looking trough a source I got and it works with packets, here is how it creates one of them.
Now if you run this program its just a console ( like cmd ) and I would like to see what packet it sends in that console so it should be something like thisCode:BEGINPACKET( pak, 0x07a8 ); ADDWORD( pak, 0x8746 ); // ?? ADDWORD( pak, thisclient->posMap ); // MAP ID? ADDFLOAT( pak, thisclient->pos.x*100 ); // POSITION X ADDFLOAT( pak, thisclient->pos.y*100 ); // POSITION Y ADDWORD( pak, 0x0001 ); // IM NOT USING IT EVEN THOUGH I SHOULD for(int i=0; i<58; i++) ADDBYTE( pak, 0 ); // Dunno what the ........ this is for thisclient->SendPacket( &pak );
and then in the console it would show like : [GM ACTION] : packet send: 7a8 xx xx......Code:Log( MSG_GMACTION,"packet send:", ????????????
any help ?
btw : I just started learning c++, dont be harsh