What is wrong with this code?
Hey.
I have the following pointer in CE:

Base: "metin2client.bin"+00C008EC
Offset 1: 0x510
Offset 2: 0x682
Now my code in c++:
But when i call the function, the game crashes.
What is wrong with the code?
Thank you
Best regards,
I have the following pointer in CE:

Base: "metin2client.bin"+00C008EC
Offset 1: 0x510
Offset 2: 0x682
Now my code in c++:
Code:
//////////////SPEEDHACK//////////////
#define BasePointer1 0xC008EC
#define Points6 0x00000510
#define Points7 0x00000682
void SetSpeedhack(){
DWORD wert1 = *(DWORD*)BasePointer1;
if(wert1 > 0){
wert1 = *(DWORD*)(wert1 + Points6);
wert1 += Points7;
*(WORD*)wert1 = 16666 ;
}
}
What is wrong with the code?
Thank you

Best regards,

