Can anyone tell me why this crashes my game? Or perhaps a better way to do this.
Code:
DWORD thefirst = (*(DWORD*)Base + 0x1343794); DWORD thesecond = (*(DWORD*)thefirst + 0); DWORD thethird = (*(DWORD*)thesecond + 0x11c); DWORD theresult = (*(DWORD*)thethird + 0x228); char msg[12]; sprintf (msg, "%i", theresult); MessageBox(NULL, msg, NULL, MB_OK);