You'll have to read amount of points using RPM and then load an amount in the variable..Code:int value = 0; //or int value; value = 0;
what the title says, how can i make it so when i press F3 it adds 750 points to my current amount of points? ive tried everything i can think of, this is what i tried last. it just changes my ingame points to 750.
heres something i just tried that gives me a compile error that im not sure how to fix. Error 1 error C4700: uninitialized local variable 'value' usedCode:while (true) { { cout << "press F3 to add 750 points\n"; {int value; value = 750; if (GetAsyncKeyState(VK_F3)){ value += 750; DWORD newdatasize = sizeof(value); (WriteProcessMemory(hProcess, (LPVOID)0x018EF124, &value, newdatasize, NULL)); cout << "Points have been added \n"; cout << " \n"; } } } system("pause"); cout << " \n"; }
Code:while (true) { { cout << "press F3 to add 750 points\n"; {int value; if (GetAsyncKeyState(VK_F3)){ DWORD newdatasize = (value) += 750; // line 36 (WriteProcessMemory(hProcess, (LPVOID)0x018EF124, &value, newdatasize, NULL)); cout << "Points have been added \n"; cout << " \n"; } } } system("pause"); cout << " \n"; }
Last edited by gogogokitty; 02-18-2014 at 03:07 PM.
You'll have to read amount of points using RPM and then load an amount in the variable..Code:int value = 0; //or int value; value = 0;
i tried this but when i press f3 it crashes my game
Code:while (true) { { cout << "press F3 to add 750 points\n"; {int value = 0; if (GetAsyncKeyState(VK_F3)){ DWORD newdatasize = (value) += 750; // line 36 (WriteProcessMemory(hProcess, (LPVOID)0x018EF124, &value, newdatasize, NULL)); cout << "Points have been added \n"; cout << " \n"; } } } system("pause"); cout << " \n";
sorry im not as advanced as that yet, whats VirtualProtect? and the memory is not protectedOriginally Posted by
Use VirtualProtect(altough it shouldn't crash it).[/COLOR
Last edited by gogogokitty; 02-18-2014 at 03:43 PM.
im not sure what to do with it. im not sure how to get the value of the points
gogogokitty (02-19-2014)
solved because Lovroman is a boss
Lovroman (02-20-2014)