Help with
Hello, what is wrong? The didn't write in Memory. Adresses are okay.
Cheat Engine:

Code:
HANDLE hProcess = 0;
HWND hWindow;
DWORD pid = 0;
//get window handle
hWindow = FindWindow(NULL, TEXT("GAME NAME"));
//get process id
if (hWindow){
GetWindowThreadProcessId(hWindow, &pid);
}
hProcess = OpenProcess(PROCESS_ALL_ACCESS, 0, pid);
WriteProcessMemory(hProcess, (LPVOID*)hProcess + 0x00811768 + 0x28 + 0x2c, "1337", sizeof(int), NULL);
