Need Help with this.

Posts 1–10 of 10 · Page 1 of 1
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
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;
                                                                                                                                                                                                                          }
Lol c+p much? Everything is wrong. It mostly happens when you don't know anything about c++
Quote Originally Posted by J%$hjes34".,t View Post
I wonder how often you use that line.
it never gets old
man plz go msn
giniyat101
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
@Ryuzaki2 Ois Lagyan mO Ng Expiration Date pEDE Huhu Di ka nag pm sakin
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.
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us