how do i make yes = a certain value?
alright ive gotten myself confused here. for instance the value for god mode in cheat engine says 1050625 for on, and 105624 for off. in my trainer how would i make it so you can type ON for god mode and Off for godmode to be turned off. ive tried (int on = 1050625
but when you type yes into the consol it just forms a infinite loop and keeps typing the same thing on screen
heres what it looks like when i type in 1050625 to turn god mode on
and heres what it looks like when i type in yes
i made the int yes = 105625 in green
but when you type yes into the consol it just forms a infinite loop and keeps typing the same thing on screenheres what it looks like when i type in 1050625 to turn god mode on

and heres what it looks like when i type in yes

i made the int yes = 105625 in green
Code:
int main()
{
string response;
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 10);
cout << " gogogokitty199's GOD MODE\n";
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 14);
cout << "\n";
cout << "\n";
cout << "Make sure World at War is opened before continuing.\n";
system("Pause");
LPCWSTR Waw = L"Call of Duty®";
HWND hwnd = FindWindow(0, Waw);
if (hwnd == 0)
{
system("color c2");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 3);
cout << "ERROR WORLD AT WAR HAS NOT BEEN FOUND!!!I told you to make sure its open!!!";
cin.get();
exit(1);
}
else
{
DWORD process_ID;
GetWindowThreadProcessId(hwnd, &process_ID);
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, process_ID);
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 3);
//program resets here
while (true)
{
cout << "God Mode off = 105624 God Mode on = 1050625: ";
int yes = 1050625;
int Points;
cin >> Points;
DWORD newdatasize = sizeof(Points);
if (WriteProcessMemory(hProcess, (LPVOID)0x0176C8A4, &Points, newdatasize, NULL))
cout << "memory has been changed \n";
cout << " \n";
}
}
}



