When i push hothey game crashes.Help please or give me working consule string.
https://www.mpgh.net/forum/207-combat...s-changes.html
This is the new way of doing them
void __stdcall PushToConsole( const char* Command)
{
DWORD* Addr = ( DWORD* ) dwLTClientEXE;
__asm
{
Pushad;
Push Command
call Addr
add esp, 0x4
Popad;
}
}
and
void __stdcall RunConsoleCmd( const char* command)
{
if(!rccAdr)
rccAdr = dwLTClientEXE;
typedef void(__cdecl*RunConsoleCommandFn)(const char*,int&);
RunConsoleCommandFn RunConsoleCmd = (RunConsoleCommandFn)rccAdr;
int v4;
RunConsoleCmd(command,v4);
}