someone help :(

Posts 1–13 of 13 · Page 1 of 1
someone help :(
i have problem with this code , when i debug the base it keeps giving me that hack must return a value ???
who can fix it !

Code:
DWORD WINAPI Hack(LPVOID param) {
	 PDWORD Weapon = (PDWORD)(dwCShell + 0xA69120);
  
DWORD pWeaponMgr1 = *(DWORD*)(dwCShell + WeaponMgr);

bool norecoil = true;
if(norecoil == true)
				   {
					   if (pWeaponMgr1) 

						   for(int i=0 ; i<601 ; i++)

						   {
							   DWORD Wep = *(DWORD*)(*Weapon + 4*i);

							   if(Wep)
							   {
								   for(int y = 0; y<9; y++)
								   {
									   *(float*)( Wep + (0x051C + (4*y))) = (float)0;//same "PerturbMin%d_%s"
									   *(float*)( Wep + (0x0684 + (4*y))) = (float)0;//same "PerturbMax%d_%s"
									   *(float*)( Wep + (0x192C + (4*y))) = (float)0;//same "BulletOffset" => second
									   *(float*)( Wep + (0x1B00 + (4*y))) = (float)0;//same "ShotReactPitch%d_%d" -8
									   *(float*)( Wep + (0x1F8C + (4*y))) = (float)0;//same "DetailPerturbShot%d_%s" -8
									   *(float*)( Wep + (0x20F4 + (4*y))) = (float)0;//same "DetailReactPitchShot%d_%s" -8
									   *(float*)( Wep + (0x225C + (4*y))) = (float)0;//same "DetailReactYawShot%d_%s" -8
								   }
							   } 
						   } 
	

}
}
u need a return value for it put return TRUE; in the end
thank you, but when i put it 2 new errors came :
error LNK1169: one or more multiply defined symbols found
error LNK2005: _DllMain@12 already defined in dllmain.obj
Here is code for No Recoil - Tested: Works!

Remember to give credits if you release it.

Code:
#include <windows.h>

void hack()
{
    DWORD _CShell = NULL;
    while(_CShell==NULL)
    {
        _CShell = (DWORD)GetModuleHandleA("CShell.dll");
    }
    DWORD CShell = NULL;
    DWORD Weapon = NULL;
    DWORD pWeaponMgr = NULL;

    bool norecoil = true;

    while(1)
    {
        CShell = (DWORD)GetModuleHandleA("CShell.dll");
        pWeaponMgr = *(DWORD*)(CShell + 0xA69120);
        if (pWeaponMgr != NULL)
        {
            for(int i=0; i<576; i++)
            {
                Weapon = (*(DWORD*)(pWeaponMgr + (4*i)));
                if(Weapon != NULL)
                {
                    for(int y = 0; y<9; y++)
                    {
                        *(float*)( Weapon + (0x051C + (4*y))) = (float)0;//same "PerturbMin%d_%s"
                        *(float*)( Weapon + (0x0684 + (4*y))) = (float)0;//same "PerturbMax%d_%s"
                        *(float*)( Weapon + (0x192C + (4*y))) = (float)0;//same "BulletOffset" => second
                        *(float*)( Weapon + (0x1B00 + (4*y))) = (float)0;//same "ShotReactPitch%d_%d" -8
                        *(float*)( Weapon + (0x1F8C + (4*y))) = (float)0;//same "DetailPerturbShot%d_%s" -8
                        *(float*)( Weapon + (0x20F4 + (4*y))) = (float)0;//same "DetailReactPitchShot%d_%s" -8
                        *(float*)( Weapon + (0x225C + (4*y))) = (float)0;//same "DetailReactYawShot%d_%s" -8
                    }
                }
            }
        }
    }
}


BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
    if(fdwReason==DLL_PROCESS_ATTACH)
    {
        CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)hack, NULL, NULL, NULL);
        MessageBoxA(NULL, "Hack made by mustafafm", "Hack", MB_OK);
    }
    return TRUE; // succesful
}
Quote Originally Posted by _corn_ View Post
Here is code for No Recoil - Tested: Works!

Remember to give credits if you release it.

Code:
#include <windows.h>

void hack()
{
    DWORD _CShell = NULL;
    while(_CShell==NULL)
    {
        _CShell = (DWORD)GetModuleHandleA("CShell.dll");
    }
    DWORD CShell = NULL;
    DWORD Weapon = NULL;
    DWORD pWeaponMgr = NULL;

    bool norecoil = true;

    while(1)
    {
        CShell = (DWORD)GetModuleHandleA("CShell.dll");
        pWeaponMgr = *(DWORD*)(CShell + 0xA69120);
        if (pWeaponMgr != NULL)
        {
            for(int i=0; i<576; i++)
            {
                Weapon = (*(DWORD*)(pWeaponMgr + (4*i)));
                if(Weapon != NULL)
                {
                    for(int y = 0; y<9; y++)
                    {
                        *(float*)( Weapon + (0x051C + (4*y))) = (float)0;//same "PerturbMin%d_%s"
                        *(float*)( Weapon + (0x0684 + (4*y))) = (float)0;//same "PerturbMax%d_%s"
                        *(float*)( Weapon + (0x192C + (4*y))) = (float)0;//same "BulletOffset" => second
                        *(float*)( Weapon + (0x1B00 + (4*y))) = (float)0;//same "ShotReactPitch%d_%d" -8
                        *(float*)( Weapon + (0x1F8C + (4*y))) = (float)0;//same "DetailPerturbShot%d_%s" -8
                        *(float*)( Weapon + (0x20F4 + (4*y))) = (float)0;//same "DetailReactPitchShot%d_%s" -8
                        *(float*)( Weapon + (0x225C + (4*y))) = (float)0;//same "DetailReactYawShot%d_%s" -8
                    }
                }
            }
        }
    }
}


BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
    if(fdwReason==DLL_PROCESS_ATTACH)
    {
        CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)hack, NULL, NULL, NULL);
        MessageBoxA(NULL, "Hack made by mustafafm", "Hack", MB_OK);
    }
    return TRUE; // succesful
}
i sent PM for you (^_^)

---------- Post added at 05:55 AM ---------- Previous post was at 05:54 AM ----------

Quote Originally Posted by FreeCode? View Post
=.= from where you got the norecoil code sir?
@mustafafm

And not only a topic of Brimir (about "how to make a base") will help , you need also brains
from you :$
you mean brain xD
Quote Originally Posted by _corn_ View Post
Here is code for No Recoil - Tested: Works!

Code:
#include <windows.h>

void hack()
{
    DWORD _CShell = NULL;
    while(_CShell==NULL)
    {
        _CShell = (DWORD)GetModuleHandleA("CShell.dll");
    }
    DWORD CShell = NULL;
    DWORD Weapon = NULL;
    DWORD pWeaponMgr = NULL;

    bool norecoil = true;

    while(1)
    {
        CShell = (DWORD)GetModuleHandleA("CShell.dll");
        pWeaponMgr = *(DWORD*)(CShell + 0xA69120);
        if (pWeaponMgr != NULL)
        {
            for(int i=0; i<576; i++)
            {
                Weapon = (*(DWORD*)(pWeaponMgr + (4*i)));
                if(Weapon != NULL)
                {
                    for(int y = 0; y<9; y++)
                    {
                        *(float*)( Weapon + (0x051C + (4*y))) = (float)0;//same "PerturbMin%d_%s"
                        *(float*)( Weapon + (0x0684 + (4*y))) = (float)0;//same "PerturbMax%d_%s"
                        *(float*)( Weapon + (0x192C + (4*y))) = (float)0;//same "BulletOffset" => second
                        *(float*)( Weapon + (0x1B00 + (4*y))) = (float)0;//same "ShotReactPitch%d_%d" -8
                        *(float*)( Weapon + (0x1F8C + (4*y))) = (float)0;//same "DetailPerturbShot%d_%s" -8
                        *(float*)( Weapon + (0x20F4 + (4*y))) = (float)0;//same "DetailReactPitchShot%d_%s" -8
                        *(float*)( Weapon + (0x225C + (4*y))) = (float)0;//same "DetailReactYawShot%d_%s" -8
                    }
                }
            }
        }
    }
}
}
The loop works nice, but maybe someone know how to find last 4 offsets in Olly (i want to make hack for CF EU), because i look and found nothing (but after last patch i can found them without problems).
you need to put Cshell to sleep.......
You declared a DWORD function so that means that you want to return a DWORD value. If you didn't know this, my advice to you is learn c++ and stop leeching code.
I am not a leecher my friend ,
all credits of my work are for brimir , michielr , _corn_ , FreeCode?
and i am not programmer but trying to learn something new in this site .
but all i see is people who love to spam every topic written .
Quote Originally Posted by mustafafm View Post
I am not a leecher my friend ,
all credits of my work are for brimir , michielr , _corn_
and i am not programmer but trying to learn something new in this site .
but all i see is people who love to spam every topic written .
=.= from where you got the norecoil code sir?
@mustafafm

And not only a topic of Brimir (about "how to make a base") will help , you need also brains
Quote Originally Posted by 258456 View Post
You declared a DWORD function so that means that you want to return a DWORD value. If you didn't know this, my advice to you is learn c++ and stop leeching code.
it's not ur buisness if hes leeching codes or not u shouldn't blame or judge him hes not leeching a code he just want to learn from his mistakes..so don't be rude..try that thank me if i helped u
Quote Originally Posted by Dead(H)ell View Post
it's not ur buisness if hes leeching codes or not u shouldn't blame or judge him hes not leeching a code he just want to learn from his mistakes..so don't be rude..try that thank me if i helped u
i am not going to thank. ur one of the leechers in this section that i can't stand. If you notice his post you will see that he doesn't know what a return value is. That's basic c++ and i am not going to waste my time helping somebody with leeched code. If he doesn't know how to make a function return a value then he didn't create a full blown hack. I would be glad to help him if he posted in the c++ section and asked what a return value is, but this isn't the c++ section. So before you decide you want to get your post count higher i would suggest that you go read up on c++ rather than just pming me for code.
... Bumped Thread. /Closed
Posts 1–13 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us