Results 1 to 5 of 5
  1. #1
    maxpower439's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Hell
    Posts
    409
    Reputation
    12
    Thanks
    79
    My Mood
    Hungover

    Help with my newbie code :(

    Hey guys i am having trouble with my code , pelase dont flame im very weak and feeble and newby xD but yer guys i just need someone to define why my code get an error when i debug in c++!
    // dllmain.cpp : Defines the entry point for the DLL application.
    #include "stdafx.h"
    #define WeaponMgr 0xA65EE8
    #define NoReload 0x2698
    #define OneHit 0x7F8

    DWORD WINAPI Hacks(LPVOID)
    {
    bool hak = true;
    bool recoil = true;

    while(1)
    {
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);

    if(hak)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<560; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + OneHit ) = 9999;
    }


    }
    }
    if(OneHit)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<560; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 150;

    Sleep(100);
    }

    }

    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 )
    {

    MessageBoxA(0, "Credits- Maxpower439","Beta Hack", 0);


    CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
    }
    return 1;
    }
    Any ideas?

  2. #2
    DaRk's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Location
    MPGH
    Posts
    1,910
    Reputation
    119
    Thanks
    3,986
    My Mood
    Asleep
    Code:
    #include <windows.h>
    #define WeaponMgr 0xA65EE8
    #define NoReload 0x2698
    #define OneHit 0x7F8
    
    DWORD WINAPI Hacks(LPVOID)
    {
    bool noreload = true;
    bool onehit = true;
    
    while(1)
    {
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
    
    if(onehit)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<560; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + OneHit ) = 9999;
    }
    
    
    }
    }
    if(noreload)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<560; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
    }
    }
    }
    
    Sleep(100);
    }
    
    }
    
    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 )
    {
    
    MessageBoxA(0, "Credits- Maxpower439","Beta Hack", 0);
    
    
    CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
    }
    return 1;
    }
    fixed it for u
    dont forget to press thanks+rep

  3. The Following 3 Users Say Thank You to DaRk For This Useful Post:

    badboy3 (11-15-2011),giniyat101 (11-16-2011),maxpower439 (11-15-2011)

  4. #3
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,010
    My Mood
    Amused
    So is this solved?
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck

  5. The Following User Says Thank You to A$IAN For This Useful Post:

    maxpower439 (11-15-2011)

  6. #4
    maxpower439's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Hell
    Posts
    409
    Reputation
    12
    Thanks
    79
    My Mood
    Hungover
    Yup thank u errol <3 (not ghey)

  7. #5
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    Quote Originally Posted by errol641 View Post
    Code:
    #include <windows.h>
    #define WeaponMgr 0xA65EE8
    #define NoReload 0x2698
    #define OneHit 0x7F8
    
    DWORD WINAPI Hacks(LPVOID)
    {
    bool noreload = true;
    bool onehit = true;
    
    while(1)
    {
    DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
    DWORD pWeaponMgr = *(DWORD*)(CShell+WeaponMgr);
    
    if(onehit)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<560; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + OneHit ) = 9999;
    }
    
    
    }
    }
    if(noreload)
    {
    if (pWeaponMgr)
    {
    for(int i=0; i<560; i++)
    {
    if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
    *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
    }
    }
    }
    
    Sleep(100);
    }
    
    }
    
    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 )
    {
    
    MessageBoxA(0, "Credits- Maxpower439","Beta Hack", 0);
    
    
    CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
    }
    return 1;
    }
    fixed it for u
    dont forget to press thanks+rep
    what was the mistake?
    and btw, check your PMs


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

Similar Threads

  1. [HELP] help with a knife code
    By lior19940 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 7
    Last Post: 09-10-2010, 08:58 PM
  2. Need help with a killstreak code
    By lior19940 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 08-16-2010, 05:22 PM
  3. Hello! i need help with the source code.
    By LatinHacker in forum Combat Arms Help
    Replies: 3
    Last Post: 05-14-2010, 10:32 PM
  4. need help with some quick codes
    By ravinghippie in forum Anti-Cheat
    Replies: 1
    Last Post: 05-13-2009, 09:24 AM
  5. Help with C++ Trainer - CODE INSIDE
    By bagpiperdude90 in forum C++/C Programming
    Replies: 2
    Last Post: 10-10-2007, 02:29 PM