int value edit crash

Posts 1–3 of 3 · Page 1 of 1
int value edit crash
anyone know why this is causing my game to crash when injected?
Code:
static int f = *(int*)0x299EDDA8;
*(int*)(GetModuleHandle("engine.dll") + 0x8EDDA8) =1;
Quote Originally Posted by Dazholmes View Post
anyone know why this is causing my game to crash when injected?
Code:
static int f = *(int*)0x299EDDA8;
*(int*)(GetModuleHandle("engine.dll") + 0x8EDDA8) =1;
What is this?

Perhabs you'r facing an access violation?!
Did you compile it for the right platform?
Try to attach a debugger to the process and set some breakpoints to find out were it crashes.


Perhabs you try this:

Code:
DWORD address = GetModuleHandle("engine.dll") + 0x8EDDA8;
DWORD *value;
value = (DWORD*)address;
*value = 1;
DWORD worked thanks
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?