ExclamationReport Error Bypass 28_3

Posts 115 of 28 · Page 1 of 2
Report Error Bypass 28_3
Please help me, this report error when the game opens, I can not solve it.

Error:
Report Erro

Sorry for bad english

Code:
bool isReady = false;
typedef struct
{
	BYTE Data[0x3000];
} WeaponMgrCopy;

WeaponMgrCopy* Weapons[3300];

void backup(DWORD CShell, DWORD WeaponMgr)
{
	DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
	for (int i = 0; i <= 3300; i++)
	{
		DWORD Weapon = (*(DWORD*)(pWeaponMgr + (4 * i)));
		if (Weapon != NULL)
		{
			Weapons[i] = new WeaponMgrCopy;
			memcpy(Weapons[i], (void*)(Weapon), 0x1400);
		}
	}
}

WeaponMgrCopy* bypass(int GunIndexNR)
{
	return Weapons[GunIndexNR];
}

void MakeCall(BYTE* paddress, DWORD yourfunction, DWORD dwlen)
{
	DWORD dwOldProtect, dwBkup, dwRelAddr;
	VirtualProtect(paddress, dwlen, PAGE_EXECUTE_READWRITE, &dwOldProtect);
	dwRelAddr = (DWORD)(yourfunction - (DWORD)paddress) - 5;
	*paddress = 0xE8;
	*((DWORD*)(paddress + 0x1)) = dwRelAddr;
	for (DWORD x = 0x5; x < dwlen; x++) *(paddress + x) = 0x90;
	VirtualProtect(paddress, dwlen, dwOldProtect, &dwBkup);
	return;
}

void WeaponCheats()
{
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD WeaponMgr = *(DWORD*)(CShell + o_weaponMgr);
	if (isReady == false)
	{
		backup(CShell, WeaponMgr);
		if (*(BYTE*)(CShell + 0x7BC475)) // - Update This
		{
			MakeCall((BYTE*)(CShell + 0x7BC475), (DWORD)bypass, 5); // - Update This
			isReady = true;
		}
	}

	if (isReady)
	{
		if (WeaponMgr)
		{

			for (int i = 0; i < 3300; i++)
			{
				DWORD Weapon = *(DWORD *)(WeaponMgr + (4 * i));

				if (Weapon != 0)
				{
					*(float *)(Weapon + 0x1320) = 999.0F;
					*(float *)(Weapon + 0x1324) = 999.0F;
				}
			}
		}
	}
}
Quote Originally Posted by brbuscas View Post
Please help me, this report error when the game opens, I can not solve it.

Error:
Report Erro

Sorry for bad english

Code:
bool isReady = false;
typedef struct
{
	BYTE Data[0x3000];
} WeaponMgrCopy;

WeaponMgrCopy* Weapons[3300];

void backup(DWORD CShell, DWORD WeaponMgr)
{
	DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
	for (int i = 0; i <= 3300; i++)
	{
		DWORD Weapon = (*(DWORD*)(pWeaponMgr + (4 * i)));
		if (Weapon != NULL)
		{
			Weapons[i] = new WeaponMgrCopy;
			memcpy(Weapons[i], (void*)(Weapon), 0x1400);
		}
	}
}

WeaponMgrCopy* bypass(int GunIndexNR)
{
	return Weapons[GunIndexNR];
}

void MakeCall(BYTE* paddress, DWORD yourfunction, DWORD dwlen)
{
	DWORD dwOldProtect, dwBkup, dwRelAddr;
	VirtualProtect(paddress, dwlen, PAGE_EXECUTE_READWRITE, &dwOldProtect);
	dwRelAddr = (DWORD)(yourfunction - (DWORD)paddress) - 5;
	*paddress = 0xE8;
	*((DWORD*)(paddress + 0x1)) = dwRelAddr;
	for (DWORD x = 0x5; x < dwlen; x++) *(paddress + x) = 0x90;
	VirtualProtect(paddress, dwlen, dwOldProtect, &dwBkup);
	return;
}

void WeaponCheats()
{
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD WeaponMgr = *(DWORD*)(CShell + o_weaponMgr);
	if (isReady == false)
	{
		backup(CShell, WeaponMgr);
		if (*(BYTE*)(CShell + 0x7BC475)) // - Update This
		{
			MakeCall((BYTE*)(CShell + 0x7BC475), (DWORD)bypass, 5); // - Update This
			isReady = true;
		}
	}

	if (isReady)
	{
		if (WeaponMgr)
		{

			for (int i = 0; i < 3300; i++)
			{
				DWORD Weapon = *(DWORD *)(WeaponMgr + (4 * i));

				if (Weapon != 0)
				{
					*(float *)(Weapon + 0x1320) = 999.0F;
					*(float *)(Weapon + 0x1324) = 999.0F;
				}
			}
		}
	}
}
You'd knew, if u didn't C+P
Quote Originally Posted by vaisefud3 View Post
You'd knew, if u didn't C+P
What's the problem, can you help me?
Quote Originally Posted by brbuscas View Post
What's the problem, can you help me?
Several code flaws, learn the programming logic first, then try to code something
Esses offset é de qual função que você está querendo fazer?
Quote Originally Posted by alisonbbzz View Post
Esses offset é de qual função que você está querendo fazer?
NoReload and NoChange
Quote Originally Posted by Turbulence_ View Post
this code are patched
what code would be running then?
Quote Originally Posted by brbuscas View Post
what code would be running then?
First of all, this will give u a nice DC
Second, if u don't know what it does, u shouldn't be using it
Quote Originally Posted by vaisefud3 View Post
First of all, this will give u a nice DC
Second, if u don't know what it does, u shouldn't be using it
You are speaking, speaking and speaking. The topic is asking for help, if it does not help, quit.
Quote Originally Posted by vaisefud3 View Post
First of all, this will give u a nice DC
Second, if u don't know what it does, u shouldn't be using it
Either help the guy out or go away
those are just saving the default value of what kind you are trying to change. and blah blah.
many lines are wrong
many Errors in the code
But thats a good start
u solve or noo
if no i can help u <3
Posts 115 of 28 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?