That's pretty close, the only issue i see is where you set d.Player. You should make that equal to PlayerIndex, not the player's address. So like d.player = PlayerIndex; Also, don't forget to delete packetBuffer when you're done, you don't want a memory leak.
edit: for ADDR_SOCKETREADY do a binary search for: 89 5E 18 89 1E 89 5E 08 89 5E 0C 89 5E 04 and you should end up seeing something like this http://pastebin.com/kusN1kuy
Bookmarks