Hey MPGH.. i know your proberly going to flame me, call me a noob and all..
But i want to release my menu-Hack, from whit's base..
I've looked around this forum.. tried a couple of the PTC Methods..
And like, the compile wont work.. there is always some error..
I got this atm:
[PHP] void __cdecl cBase::PushToConsole(const char* szCommand )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( 0x377ED910 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
}
[/PHP]
And i tried this one recently
[PHP]void RunConsoleCommand(const char* szCommand )
{
DWORD ltClient = 0x377ED910;
__asm
{
mov eax, [ltClient]; //interface dereference
mov esi, [eax + 0x208]; //vtable dereference //we could push and call ESI now
mov edx, [esi + 0x01]; //jump operand dereference. EDX holds the EIP displacement
add edx, 5; //displacement ad
[/PHP]
And this error come up:
[PHP]1>------ Build started: Project: CaBase, Configuration: Release Win32 ------
1> Base.cpp
1>Base.cpp(309): error C2601: 'cBase::RenderFrame' : local function definitions are illegal
1> Base.cpp(298): this line contains a '{' which has not yet been matched
1>Base.cpp(324): error C2601: 'cBase::GetPointer' : local function definitions are illegal
1> Base.cpp(298): this line contains a '{' which has not yet been matched
1>Base.cpp(334): error C2601: 'cBase::IsGameReadyForHook' : local function definitions are illegal
1> Base.cpp(298): this line contains a '{' which has not yet been matched
1>Base.cpp(344): error C2601: 'dwMainThread' : local function definitions are illegal
1> Base.cpp(298): this line contains a '{' which has not yet been matched
1>Base.cpp(354): error C2601: 'dwHackThread' : local function definitions are illegal
1> Base.cpp(298): this line contains a '{' which has not yet been matched
1>Base.cpp(364): error C2601: 'DllMain' : local function definitions are illegal
1> Base.cpp(298): this line contains a '{' which has not yet been matched
1>Base.cpp(374): fatal error C1075: end of file found before the left brace '{' at 'Base.cpp(298)' was matched
1> DirectX.cpp
1> Menu.cpp
1> Misc.cpp
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
[/PHP]
It's weird.. just can't figure it out -.-
Please help me, be appreciated.