What is with this code???

Posts 1–14 of 14 · Page 1 of 1
What is with this code???
guys i get Send error report using this shit code:




#include "stdafx.h"

#define WeaponMgr 0xA68F90
#define NoReload 0x269C

DWORD WINAPI Hacks(LPVOID)
{
bool noreload=true;

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

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- moathebest","Beta Hack", 0);


CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0, 0);
}
return 1;
}

What should i do???
why you put it?
//if((*DWORD*)((*DWORD*)(CShell+WeaponMgr))+(4*i)) ) !=NULL
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 100;
Quote Originally Posted by GunBoy120 View Post
why you put it?
sry i was trying to fix it when it gave me error and i just copied it from C++ so here u go i edited it
Quote Originally Posted by GunBoy120 View Post
remove this and put:
Lolz xD no noobtube xD
Do you know what that is ?

#include <windows.h> can be included in #include "stdafx.h"
He can compile the dll.. So why would you change the headers? He has all the functions he needs...

Edit:

Seriously, there is no reason you don't get a send error report... Hint: "Leecher"
check the pointers.
it think they are right but i can't check
(i'm on my dads pc now)xd
Lol
I always create an empty project. I don´t use precompiled header files >_>
@Brimir
instead of trying to correct me, why not help him?
Quote Originally Posted by GunBoy120 View Post
@Brimir
instead of trying to correct me, why not help him?
I gave him a very good hint:
"Leecher"

My 2nd hint is, "debug your program. You will find it vey fast."
Agreed, btw what is a "leecher" im curious
Quote Originally Posted by 12au12au View Post
Agreed, btw what is a "leecher" im curious
A leecher is who steals something form others and claims it's his
Thanks im going too "Thanks" you
[FONT="Comic Sans MS"][COLOR="Olive"][SIZE="3"][B]nice post 1 question i dnt get any of that
Posts 1–14 of 14 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us