im just getting back into c++ and im making random crap to screw around with, but im trying to do this:
int 1 = 0;
int 2 = 500;
int 3 = 1700;
and so on but im getting compiler errors, is this not allowed? and how can i go about correcting this issue.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
int 1 = 0;
int 2 = 500;
int 3 = 1700;
String ^ kills = textBox9->Text;
int killsInt = Convert::ToInt32(kills);
HANDLE hProcess = 0;
HWND hWindow;
DWORD address = 0x01B2C89C;
int value = killsInt;
DWORD pid = 0;
hWindow = FindWindow(NULL, L"Call of Duty®");
if (hWindow) {
GetWindowThreadProcessId(hWindow, &pid);
}
hProcess = OpenProcess(PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_VM_OPERATION | PROCESS_QUERY_INFORMATION, 0, pid);
WriteProcessMemory(hProcess,(LPVOID)address,&value,sizeof(value),NULL);
MessageBox::Show("Your Prestige Is Set To " + kills);
sorry i should have been more specific, its setup so that the user enters in the text box numbers 1-80 and when the user enters in that amount and clicks the button it changes. for instance the user enters in the number 2, and when he enters 2 it changes to 500. thanks i didnt know i couldnt use numbers, any idea how i can do what i stated above?