Help does not work the source
Hello, here is my code, I have compiled without errors, why, when injected, not what happens?
Source:
Code:
# include "stdafx.h"
# include "windows.h"
# define WeaponMgr 0xAFF8FC / / Pointer 10,141,676 8B0D FCF8AF10 MOV ECX, DWORD PTR DS: [10AFF8FC]
# define ReloadAnimRatio 0x2650 / / offset 1014165D D998 50260000 FSTP DWORD PTR DS: [EAX +2650]
float Change = 100;
DWORD WINAPI Hacks (LPVOID)
{
bool reload = true;
while (1)
{
DWORD CShell = (DWORD) GetModuleHandleA ("CShell.dll");
DWORD pWeaponMgr = * (DWORD *) (CShell + WeaponMgr);
/ * Ask the code * /
if (pWeaponMgr) / / 0xAFF8FC
{
for (int i = 0; i <604; i + +) / / Weapon Loop. 604 = the number of the weapons
{
if ((* (DWORD *) ((* (DWORD *) (CShell + WeaponMgr)) + (4 * i)))! = NULL)
* (float *) ((* (DWORD *) ((* (DWORD *) (CShell + WeaponMgr)) + (4 * i))) + 0x2650) = 75.0f; / / String is "ReloadAnimRatio"
}
}
}
}
bool Ready2Hook ()
{
if (GetModuleHandleA ("CShell.dll")! = NULL
&& GetModuleHandleA ("ClientFx.fxd")! = NULL)
return 1;
return 0;
}
DWORD WINAPI Wait (LPVOID)
{
while (! Ready2Hook ()) Sleep (200);
CreateThread (NULL, NULL, (LPTHREAD_START_ROUTINE) Hacks, NULL, NULL, NULL);
return 0;
}
BOOL WINAPI DllMain (HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
DisableThreadLibraryCalls (hDll);
if (dwReason == DLL_PROCESS_ATTACH)
{
return 1;
}
}
Help!!! does not work the source
---------- Post added at 09:26 AM ---------- Previous post was at 08:31 AM ----------
mpgh this is the best site, please help, I thanked, or write to skype anderdem01, PLEASE HELP