Hi guys, heres my source, i am pretty new to codding and i need help. What's wrong with this code? Why isn't it working?
Sorry for my Bad ENGLISH
Thanks for any help. :-)
#include "stdafx.h"
#include "windows.h"
#include <iostream>
using namespace std;
DWORD processid;
DWORD GOD = 0x280 ;
DWORD WT;
DWORD64 Recoil = { 0x221A19A0074 };
DWORD64 DMG = { 0x221A19A0098 };
DWORD64 Nes = { 0x26F12D6AAF0 };
int g = 1;
int r = 0;
int d = 1000;
int n = 1128099791;
int main()
{
HWND hwnd = FindWindowA(0, ("Grand Theft Auto V"));
GetWindowThreadProcessId(hwnd, &processid); //R-ALT+C
HANDLE phandle = OpenProcess(PROCESS_ALL_ACCESS, TRUE, processid);
WriteProcessMemory(phandle, (LPVOID)GOD, &g, sizeof(g), 0);
WriteProcessMemory(phandle, (LPVOID)Recoil, &r, sizeof(r), 0);
WriteProcessMemory(phandle, (LPVOID)DMG, &d, sizeof(d), 0);
WriteProcessMemory(phandle, (LPVOID)Nes, &n, sizeof(n), 0);
// << -
// "---"
cout << "" << endl;
cout << "" << endl;
system("pause");
}