this is what i have in my CE table:
address of server.dll+716A34 (15CD6A34) that holds value 0x26BD1190
pointer to 26BD1958 (ammo) made with adding address 15CD6A34 (see above) and offsett 7c8.
how do i use this to get a static address that i can control the ammo with?
i try this code
Code:
#include <stdio.h>
#include <windows.h>
#include <iostream>
#include <iomanip>
using namespace std;
void getBaseAddy()
{
DWORD baseAddy = (DWORD)GetModuleHandle("server.dll");
DWORD ammoAddy = (DWORD)(baseAddy + 716274) + 1992;
}
BOOL WINAPI DllMain(HINSTANCE module, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)getBaseAddy, NULL, NULL, NULL);
}
return TRUE;
}