[html]DWORD dwCall = MelEngine.Cmd;
__asm
{
PUSH dCmd;
PUSH 0;
PUSH 0;
CALL dwCall;
ADD ESP, 0x0C;
}[/html]
Enjoy Yourself.
hey guys i need some help from you cause i want to make a send command to console function xD
but im not pro so i get an error!
Which is: GAME CRASH!
Well i tried to use the hahaz's function that i saw here, but its the same
Now im using this:
As i said above im not pro so please don't be so rude like other persons do.Code:static DWORD sndTc = 0x4CA0F0; void SendCommand(char *command) { _asm{ push command push 1 call sndTc } }
[html]DWORD dwCall = MelEngine.Cmd;
__asm
{
PUSH dCmd;
PUSH 0;
PUSH 0;
CALL dwCall;
ADD ESP, 0x0C;
}[/html]
Enjoy Yourself.
Love You All~
Same Thing, Mine just uses a SigScan.
Love You All~
~Sighs.
You need everything done for you don't yas ?
[html]void SendCommandToConsole(char * dCmd)
{
DWORD dwCall = 0x4CA0F0;
__asm
{
PUSH dCmd;
PUSH 0;
PUSH 0;
CALL dwCall;
ADD ESP, 0x0C;
}
}
[/html]
That's what I Meant was good for you.
Love You All~
Hell_Demon (10-24-2010),[MPGH]master131 (10-24-2010)
It is crashing because you (usually) need to call this in an engine function (EndFrame or RenderScene) otherwise it causes a race condition and crashes
ps.
i use this
Code:typedef void (__cdecl *tSendCommandToConsole)(int a1, int a2, char *cvar); tSendCommandToConsole oSendCommandToConsole = 0x4CA0F0; EndframeDetour( ) { oSendCommandToConsole(1, 1, "cg_DrawFPS 1"); }
Last edited by bomb21; 10-23-2010 at 10:00 AM.
Hell_Demon (10-24-2010)
WELL!
THANKS A LOT!!!!
I WILL NEVER FORGET YOUR HELP!
if i hoocked IDirect3DDevice9::EndScene()
can i use you function of inputing commands?