when im coding packets i would needa do something like ushort
and when ur coding packets like this
so i needa explanations for uint Timer (uint)Environment.TickCount; need exlanations for the *((ushort*)(p + {"the number"}) = (uint)Timer
dunno whats that into the curly brackets and the type casted timer also
PHP Code:
PacketType = 0x3f2;
byte[] Packet = new byte[24];
uint Timer = (uint)Environment.TickCount;
PHP Code:
*((ushort*)(p + 2)) = (ushort)PacketType;
((uint*)(p + 4)) = (uint)Timer;
*((ushort*)(p + 8)) = (ushort)Charr.LocMap;
*(p + 22) = (byte)(0x4a & 0xff);
dunno whats that into the curly brackets and the type casted timer also