Solved Assault cube error with my code

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

DemonicMinz

Newbie
Feb 18, 2016
1
32
0
C++:
#include <iostream>
#include <Windows.h>
#include <string>
#include <ctime>


using namespace std;

DWORD multiPointers(int Pointers, HANDLE hProcHandle, DWORD Offsets[], DWORD BaseAddress);

int main(){

	cout << "\nWelcome to Noblesse first MemoryEditing\n\n";

	HWND hWnd = FindWindow(0, "AssaultCube");
	if (hWnd == 0){
		cout << "Could not find AssaultCube Window\n";
	}
	else{
		cout << " AssaultCube Window is found\n";
	}

	DWORD procId;
	GetWindowThreadProcessId(hWnd, &procId);

	HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, procId);
	if (!hProc){
		cout << "FullAccess to AssaultCube Failed\n\n\n";
	}
	else {
		cout << "Successfully Access All AssaultCube Proccess\n";
		DWORD Offsets[] = { 0x384, 0x14, 0x0 };
		int currentAmmo;
		DWORD BaseAddress = 0x00509B74;
		DWORD acAmmoPointers = multiPointers(3, hProc, Offsets, BaseAddress);
		WriteProcessMemory(hProc, (LPVOID)acAmmoPointers, &currentAmmo, sizeof(currentAmmo), NULL);

		cout << "Current Ammo is " << currentAmmo << endl;
	}

	system("pause");
}


DWORD multiPointers(int Pointers, HANDLE hProc, DWORD Offsets[], DWORD BaseAddress)
{
	DWORD Pointer = BaseAddress;
	DWORD Pointed;
	DWORD PointedAddress;
	for (int x = 0; x < 0; x++)
	{
		if (x == 0)
		{
			ReadProcessMemory(hProc, (LPCVOID)Pointer, &Pointed, 4, NULL);
		}
		PointedAddress = Pointed + Offsets[x];
		ReadProcessMemory(hProc, (LPCVOID)PointedAddress, &Pointed, 4, NULL);
		cout << x; 
		Sleep(2000);

		return PointedAddress;
	}
	

}

Image of the error =

https://imgur.com/kLXxzbM


I need assist with code.. hope here could help. Thanks
 

Rake

Cesspool Admin
Administrator
Jan 21, 2014
12,074
78,998
2,371
Best Answer Necro:
Do this guide, How to Hack Any Game pt 2 Rake
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods