Results 1 to 10 of 10
  1. #1
    CrockCrock21's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    56
    Reputation
    10
    Thanks
    5

    Need Help with this.

    This is my DLLMain. Help me sir I'm new to Coding

    Code:
    #include <windows.h>
    #include <iostream>
    
    #define WeaponMgr 0xB65E94
    #define Playerbasic 0xAFED68
    #define NoChange 0xBD8
    #define NoReload 0xBDC
    
    using namespace std;
    
    DWORD WINAPI Hacks(LPVOID)
    {     
                 //Memory
                 bool NoReload = true;
                 bool NoRecoil = true;
                 bool NoChange = true;
                 bool SeeGhost = true;
                 
                 while (true)
                 {
                 DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
                 DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
                 PDWORD Weapon = (PDWORD)(CShell + 0xB65E94 );
                 }
                 //No Reload
                 if (NoReload)
                 {
                              if (pWeaponMgr)
                              {
                                             for(int i=0; i<650; i++)
                                             {
                                                     if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
                                                     *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBDC) = 2.0f;
                                                     }
                                                     //No Recoil
                                                     if (NoRecoil)
                                                     {
                                                                  if (pWeaponMgr)
                                                                  {
                                                                                 for(int i=0 ; i<650 ; i++)
                                                                                 {
                                                                                          DWORD Wep = *(DWORD*)(*Weapon + 4*i);
    
                                                                                          if(Wep)
                                                                                          {
                                                                                                 for(int y = 0; y<9; y++)
                                                                                                 {
                                                                                                         *(float*)( Wep + (0X34C0 + (4*y))) = (float)0;
                                                                                                         *(float*)( Wep + (0x34C4 + (4*y))) = (float)0;
                                                                                                         *(float*)( Wep + (0x34C8 + (4*y))) = (float)0;
                                                                                                         *(float*)( Wep + (0x3B20 + (4*y))) = (float)0;
                                                                                                         *(float*)( Wep + (0xE98 + (4*y))) = (float)0;
                                                                                                         *(float*)( Wep + (0x1000 + (4*y))) = (float)0;
                                                                                                         }
                                                                                                         //NoChange
                                                                                                         if (NoChange)
                                                                                                         {
                                                                                                                      if (pWeaponMgr)
                                                                                                                      {
                                                                                                                                     for(int i=0; i<650; i++)
                                                                                                                                     {
                                                                                                                                             if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
                                                                                                                                             *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBD8) = 3.0f;
                                                                                                                                             }
                                                                                                                                             //SeeGhost
                                                                                                                                             if(Playerbasic)
                                                                                                                                             {
                                                                                                                                                            *(float*)(Playerbasic + 0x88) = (float)1.0;
                                                                                                                                                            *(float*)(Playerbasic + 0x8C) = (float)1.0;
                                                                                                                                                            *(float*)(Playerbasic + 0x90) = (float)1.0;
                                                                                                                                                            }
                                                                                                                                                            }
                                                                                                                                                            }
                                                                                                                                                            Sleep(100); 
                                                                                                                                                            }
                                                                                                                                                            bool Ready2Hook()
                                                                                                                                                            {
                                                                                                                                                                 if(GetModuleHandleA("CShell.dll") != NULL
                                                                                                                                                                 && GetModuleHandleA("ClientFx.fxd") != NULL)
                                                                                                                                                                 return true;
                                                                                                                                                                 return false;
                                                                                                                                                                 }
                                                                                                                                                                 BOOL WINAPI SndDrv ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
                                                                                                                                                                 {
                                                                                                                                                                      DisableThreadLibraryCalls(hDll);
                                                                                                                                                                      if ( dwReason == DLL_PROCESS_ATTACH )
                                                                                                                                                                      {
                                                                                                                                                                           MessageBoxA(0, "CrockCrock" , "MPGH" ,0);
                                                                                                                                                                           CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
                                                                                                                                                                           }
                                                                                                                                                                           {
                                                                                                                                                                                                                              return 1;
                                                                                                                                                                                                                              }
    @giniyat101 Sir I pmed you the errors here is my Code

    I'm new to coding

    ---------- Post added at 09:50 AM ---------- Previous post was at 09:40 AM ----------

    This is the errors

    Compile Errors:
    In function `DWORD Hacks(void*)':
    Line 14 expected primary-expression before "bool"
    Line 14 expected `;' before "bool"
    Line 16 expected primary-expression before "bool"
    Line 16 expected `;' before "bool"
    Line 28 `pWeaponMgr' undeclared (first use this function)
    (Each undeclared identifier is reported only once for each function it appears in.)
    Line 32 `CShell' undeclared (first use this function)
    Line 42 `Weapon' undeclared (first use this function)
    Line 76 expected primary-expression before "bool"
    Line 76 expected `;' before "bool"
    Line 84 a function-definition is not allowed here before '{' token
    Line 84 expected `,' or `;' before '{' token
    Line 93 expected `}' at end of input
    Last edited by CrockCrock21; 05-27-2012 at 09:41 AM.

  2. #2
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    well this part is wrong:
    Code:
    #include <windows.h>
    #include <iostream>
    
    #define WeaponMgr 0xB65E94
    #define Playerbasic 0xAFED68
    #define NoChange 0xBD8
    #define NoReload 0xBDC
    
    using namespace std;
    
    DWORD WINAPI Hacks(LPVOID)
    {     
                 //Memory
                 bool NoReload = true;
                 bool NoRecoil = true;
                 bool NoChange = true;
                 bool SeeGhost = true;
                 
                 while (true)
                 {
                 DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
                 DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
                 PDWORD Weapon = (PDWORD)(CShell + 0xB65E94 );
                 }
                 //No Reload
                 if (NoReload)
                 {
                              if (pWeaponMgr)
                              {
                                             for(int i=0; i<650; i++)
                                             {
                                                     if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
                                                     *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBDC) = 2.0f;
                                                     }
                                                     //No Recoil
                                                     if (NoRecoil)
                                                     {
                                                                  if (pWeaponMgr)
                                                                  {
                                                                                 for(int i=0 ; i<650 ; i++)
                                                                                 {
                                                                                          DWORD Wep = *(DWORD*)(*Weapon + 4*i);
    
                                                                                          if(Wep)
                                                                                          {
                                                                                                 for(int y = 0; y<9; y++)
                                                                                                 {
                                                                                                         *(float*)( Wep + (0X34C0 + (4*y))) = (float)0;
                                                                                                         *(float*)( Wep + (0x34C4 + (4*y))) = (float)0;
                                                                                                         *(float*)( Wep + (0x34C8 + (4*y))) = (float)0;
                                                                                                         *(float*)( Wep + (0x3B20 + (4*y))) = (float)0;
                                                                                                         *(float*)( Wep + (0xE98 + (4*y))) = (float)0;
                                                                                                         *(float*)( Wep + (0x1000 + (4*y))) = (float)0;
                                                                                                         }
                                                                                                         //NoChange
                                                                                                         if (NoChange)
                                                                                                         {
                                                                                                                      if (pWeaponMgr)
                                                                                                                      {
                                                                                                                                     for(int i=0; i<650; i++)
                                                                                                                                     {
                                                                                                                                             if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
                                                                                                                                             *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + 0xBD8) = 3.0f;
                                                                                                                                             }
                                                                                                                                             //SeeGhost
                                                                                                                                             if(Playerbasic)
                                                                                                                                             {
                                                                                                                                                            *(float*)(Playerbasic + 0x88) = (float)1.0;
                                                                                                                                                            *(float*)(Playerbasic + 0x8C) = (float)1.0;
                                                                                                                                                            *(float*)(Playerbasic + 0x90) = (float)1.0;
                                                                                                                                                            }
                                                                                                                                                            }
                                                                                                                                                            }
                                                                                                                                                            Sleep(100); 
                                                                                                                                                            }
                                                                                                                                                            bool Ready2Hook()
                                                                                                                                                            {
                                                                                                                                                                 if(GetModuleHandleA("CShell.dll") != NULL
                                                                                                                                                                 && GetModuleHandleA("ClientFx.fxd") != NULL)
                                                                                                                                                                 return true;
                                                                                                                                                                 return false;
                                                                                                                                                                 }
                                                                                                                                                                 BOOL WINAPI SndDrv ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
                                                                                                                                                                 {
                                                                                                                                                                      DisableThreadLibraryCalls(hDll);
                                                                                                                                                                      if ( dwReason == DLL_PROCESS_ATTACH )
                                                                                                                                                                      {
                                                                                                                                                                           MessageBoxA(0, "CrockCrock" , "MPGH" ,0);
                                                                                                                                                                           CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
                                                                                                                                                                           }
                                                                                                                                                                           {
                                                                                                                                                                                                                              return 1;
                                                                                                                                                                                                                              }


     



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

  3. #3
    desertflame's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Posts: 23847611237
    Posts
    380
    Reputation
    48
    Thanks
    850
    My Mood
    Amused
    Lol c+p much? Everything is wrong. It mostly happens when you don't know anything about c++

  4. #4
    GameMaster025's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    60
    Reputation
    10
    Thanks
    54
    My Mood
    Busy
    try to learn vc++ basic!
    Crossfire Ph cheater
    GM Pub hack v1.0 Detected
    [IMG]https://i175.photobucke*****m/albums/w148/Guitarman1157/dontforget.gif[/IMG]

  5. #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 GreenBagels View Post
    I wonder how often you use that line.
    it never gets old


     



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

  6. #6
    [mi5's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    301
    Reputation
    10
    Thanks
    618
    man plz go msn
    giniyat101

  7. #7
    Ryuzaki™'s Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    At my headquarter, catching KIRA
    Posts
    1,671
    Reputation
    41
    Thanks
    6,252
    My Mood
    Lurking
    Also, remove this part:
    Code:
     bool Ready2Hook()
                                                                                                                                                            {
                                                                                                                                                                 if(GetModuleHandleA("CShell.dll") != NULL
                                                                                                                                                                 && GetModuleHandleA("ClientFx.fxd") != NULL)
                                                                                                                                                                 return true;
                                                                                                                                                                 return false;
                                                                                                                                                                 }
    It does nothing in your codes



  8. #8
    ayawmanmik's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Location
    In Your Window
    Posts
    277
    Reputation
    10
    Thanks
    2,754
    My Mood
    Aggressive
    @xmen Ois Lagyan mO Ng Expiration Date pEDE Huhu Di ka nag pm sakin

  9. #9
    CrockCrock21's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    56
    Reputation
    10
    Thanks
    5
    well I'm still learning all I know about in C++ is up to the integers . I'm still learning through youtube videos. Books are boring.

  10. #10
    NiceTry's Avatar
    Join Date
    May 2012
    Gender
    female
    Location
    Sun
    Posts
    77
    Reputation
    10
    Thanks
    122
    @CrockCrock21 I PM'ed you.

  11. The Following User Says Thank You to NiceTry For This Useful Post:

    bugbog10 (06-12-2012)

Similar Threads

  1. [Help] i need help with this hacks....
    By idomix in forum Combat Arms Europe Hacks
    Replies: 2
    Last Post: 12-19-2009, 09:10 AM
  2. [Help] Need help with this game
    By holvis in forum Soldier Front General
    Replies: 1
    Last Post: 12-06-2009, 06:41 AM
  3. OPK need help with this .
    By lalobon in forum Combat Arms Hacks & Cheats
    Replies: 11
    Last Post: 08-24-2009, 01:11 AM
  4. I need help with this code in C#
    By trevor206 in forum Programming Tutorial Requests
    Replies: 0
    Last Post: 08-18-2009, 05:40 PM
  5. Need help with this error...
    By Screenlooker in forum Combat Arms Hacks & Cheats
    Replies: 6
    Last Post: 12-27-2008, 02:21 PM