Trying to hack San Andreas, having a problem.

Posts 13 of 3 · Page 1 of 1
Trying to hack San Andreas, having a problem.
Code:
#define VARS
#include "Main.h"

DWORD WINAPI MainThread(LPVOID lpParameter)
{
	while(true)
	{
		if(GetAsyncKeyState(0x35))
		{
			DWORD X = (*(DWORD*)(0xB6F5F0 + 0x14))+0x30;
			char buff[512];
			sprintf(buff, "%d", X);
			MsgBox(buff, "SA Hack");
		}
		Sleep(100);
	}
}

BOOL Attach(HINSTANCE hDLL)
{
	MsgBox("Loaded", "SA Hack");
	V_MainThread = CreateThread(NULL,NULL,MainThread,NULL,NULL,NULL);
	return true;
}

BOOL Detach()
{
	TerminateThread(V_MainThread, 0);
	return true;
}

BOOL WINAPI DllMain(HINSTANCE hDLL, DWORD dwReason, LPVOID lpReserved)
{
    switch(dwReason) 
    { 
        case DLL_PROCESS_ATTACH:
			Attach(hDLL);
            break;
        case DLL_PROCESS_DETACH:
			Detach();
            break;
    }
    return TRUE;  // Successful DLL_PROCESS_ATTACH.
}
Anyone see what I did wrong with the coord address? For some reason it just returns the same irrelevent value over and over.

Thanks,
Vivec45
The only thing I can think of from looking at that is that the address may be wrong.
Posts 13 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?