[Help]Can't Release :(

Posts 17 of 7 · Page 1 of 1
[Help]Can't Release :(
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.
[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]

should be

[php]void RunConsoleCommand(const char* szCommand )
{
DWORD ltClient = 0x377ED910;
__asm
{
mov eax, [ltClient]; //interface dereference
mov esi, [eax + 0x208];
mov edx, [esi + 0x01];
add edx, 5;
mov eax, esi;
add eax, edx;
push szCommand;
call eax;
add esp, 4;
}
} [/php]

since your using HL-SDK PTC method
Quote Originally Posted by Timboy67678 View Post
[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]

should be

[php]void RunConsoleCommand(const char* szCommand )
{
DWORD ltClient = 0x377ED910;
__asm
{
mov eax, [ltClient]; //interface dereference
mov esi, [eax + 0x208];
mov edx, [esi + 0x01];
add edx, 5;
mov eax, esi;
add eax, edx;
push szCommand;
call eax;
add esp, 4;
}
} [/php]

since your using HL-SDK PTC method
hmm, have you got msn info?
if so, PM me it so i can add you, easier to talk over there.
Thanks,
please read your errors before you post:
Ok but now to your problems:
1.[php]Base.cpp(298): this line contains a '{' which has not yet been matched[/php]
All those are probably mistakes where you forgot a } or so... so check all your brakets & correct it!

2.
[php]Base.cpp(309): error C2601: 'cBase::RenderFrame' : local function definitions are illegal [/php]
All those are saying oh what a wonder that you defined a function LOCAL but in C++ you're only allowed to define functions on toplevel

you made smth. like this:
Code:
int func1()
{
      int func2()
      {
             return 0;
      }
      return func2();
}
THIS IS NOT ALLOWED


This would be right:
Code:
int func1();
int func2();

int func1()
{
      return func2();
}

int func2()
{
      return 0;
}
Hope i helped you
why do u even want to make a hack? Your hack is going to be exactly like everyone elses except for the menu colours and interface which should be the least important part of a hack.

and i just want to know why you are trying to make a hack when u obviously don't know any C++. Even if u would get a working menu it would be 100% other peoples code.
You are missing a bracket. Is it really that hard to read the error and figure it our? /
Posts 17 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?