guys i have this source code but i though that i have make a mistake
Code:
DWORD WINAPI Hacks(LPVOID)
{
bool oneshot = false;
bool norepeatreload = false;
bool gunkniferange = false;
bool unlimitedammo = false;
while(1)
{
DWORD CShellBase = (DWORD)GetModuleHandleA("CShell.dll");
if(oneshot)
{
for(int i=0 ; i<445 ; i++)
{
*(float*)( (*(DWORD*)((*(DWORD*)(CShellBase + UPDATE ))+(4*i))) + 0x7F8) = FLT_MAX ;
}
}
}
}
if(norepeatreload)
{
for(int i=0 ; i<445 ; i++)
{
*(float*)( (*(DWORD*)((*(DWORD*)(CShellBase + UPDATE ))+(4*i))) + 0xA44) = FLT_MAX ;
}
}
if(gunkniferange)
{
for(int i=0 ; i<445 ; i++)
{
*(float*)( (*(DWORD*)((*(DWORD*)(CShellBase + UPDATE ))+(4*i))) + 0x24B8) = FLT_MAX ;
}
}
if(unlimitedammo)
{
for(int i=0 ; i<445 ; i++)
{
*(float*)( (*(DWORD*)((*(DWORD*)(CShellBase + UPDATE ))+(4*i))) + 0x7FC) = FLT_MAX ;
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH ) {
MessageBoxA(0, "Inject", "Good luck" , 0);
}
return true;
}
i need answer