Thread: Whats wrong?

Results 1 to 4 of 4
  1. #1
    BassSR's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    5,824
    Reputation
    570
    Thanks
    330

    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 :/

  2. #2
    Jakob's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    4,722
    Reputation
    237
    Thanks
    505
    My Mood
    Psychedelic
    i think its something to do with looping to check if the game status is true as well
    RIP MINECRAFT SECTION!
    03.10.2010 - 26.09.2011

  3. #3
    IHaxYou!'s Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    HaxLand
    Posts
    937
    Reputation
    -18
    Thanks
    382
    My Mood
    Cynical
    I think I see what's wrong here.
    Give me a minute.
    Try drawing a debug box on injection.
    Last edited by IHaxYou!; 09-20-2011 at 03:14 AM.

  4. #4
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love
    You obviously have no idea whats going on.This thing only gets called once, thn leaves the thread
    You need a while loop
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012

Similar Threads

  1. superjump - whats wrong
    By kingkicker8 in forum WarRock - International Hacks
    Replies: 36
    Last Post: 10-21-2007, 09:16 PM
  2. Whats wrong with my code? =(
    By SadisticGrin in forum C++/C Programming
    Replies: 13
    Last Post: 08-03-2007, 12:39 PM
  3. Scope.. Whats wrong?
    By kingkicker8 in forum WarRock - International Hacks
    Replies: 14
    Last Post: 06-26-2007, 12:28 PM
  4. Whats wrong... inst. spawn & 5th slot
    By kingkicker8 in forum WarRock - International Hacks
    Replies: 11
    Last Post: 06-24-2007, 11:54 PM
  5. i think i know whats wrong with gourav
    By iverson954360 in forum General
    Replies: 14
    Last Post: 12-19-2006, 11:07 AM