Whats wrong?

Posts 14 of 4 · Page 1 of 1
Whats wrong?
Code:
//includes all nessecary files to this source
#include <windows.h>
//End of includes
//This is what you call globals.
int HackOn = 0;
//Define HackOn as a number, and that numebr is zero.
int HackMax = 10;
//Define HackMax as a number, and that number is ten.
bool test = false;
//Define test as a true/false. "Boolean"
#define ADDR_SBULLLETS			0x374FE0B6 
#define GameStatus              0x377CDA50f 
#define LTClientEXE		0x378F5D90
typedef int (__cdecl* RunConsoleCommand_t)(char* cmd);
RunConsoleCommand_t pRunConsoleCommand = (RunConsoleCommand_t)LTClientEXE;
//The definition of ADDR_SBULLETS
//End of Globals
void Main (void)
{

		if(GetAsyncKeyState(VK_INSERT)&1)
		{
		pRunConsoleCommand("ShowFps 1");
	} else {
		pRunConsoleCommand("ShowFps 0");
		
	}

}
DWORD WINAPI Lesson (LPVOID)
// This is just a dummy function that will be the code activate the main thread
{	
	Main();
	//Call the thread called Main
	return 1;
	//Finish of the thread.
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
// DllMain is an optional function for you to declare.
// It serves as the entry point for any DLL
{
	DisableThreadLibraryCalls(hDll);
	// Make a call to DisableThreadLibraryCalls with the hModule variable
	// as its argument; Doing this is an optimization trick to prevent
	// needless thread attach/detach messages from triggering further calls
	// to our DllMain function.
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		//When this dll is injected into the process. this is what the dll is supposed to do.
		// Null, in C Plus Plus, nothing. It is defined as 0
		CreateThread(NULL, NULL, Lesson, NULL, NULL, NULL);
		//It creates the thread called "Lesson" which is defined a few lines up. DWORD WINAPI Lesson (LPVOID)
	}
return TRUE;
// Although the return value doesn't actually matter. You return the value TRUE or FALSE indicatinng success or failure.

}
Whats wrong with it?
CA Crashs before i even get to loading. :/
i think its something to do with looping to check if the game status is true but :/
i think its something to do with looping to check if the game status is true as well
I think I see what's wrong here.
Give me a minute.
Try drawing a debug box on injection.
You obviously have no idea whats going on.This thing only gets called once, thn leaves the thread
You need a while loop
Posts 14 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?