Prompt an error in a code

Posts 1–3 of 3 · Page 1 of 1
Prompt an error in a code
I use such code:
Code:
#include "stdafx.h"
#define WeaponMgr                   0x29995C0
#define NoReload                    0x2644


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))) + 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, "Оффициальный сайт: Ommegen****\n\nАвтор: DdoosS\n\nБлагодарности: MegaR, Zedox, juLVeb\n\nДата релиза: 19.12.2011","Центурион v 1.0", 0);
        
 
        CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
   }
   return 1;
}
When I start game with this dll occurs nothing, dll likely doesn't take root into game. Prompt what to do.
I ask you to specify an error in the form of a code, instead of easier in words to explain, because I the beginner in this business and a little that understand.
If it is necessary for you more information, here the reference to my project.
To download http://*********/32319761
It would be certainly better, if somebody has given the WORKING source code, but on скольку nobody gives it it is necessary to create themes with questions : (

---------- Post added at 01:49 PM ---------- Previous post was at 12:08 PM ----------

Nobody can help me? (
Your base is wrong..Lern coding..) Good Luck
Quote Originally Posted by Ghost Rider. View Post
Ваша база не так .. Lern ​​кодирования ..) Удачи
I used files which are specified in many гайдах on this site, but have helped nothing. You though tell what project it is necessary for dll and where to insert codes.
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us