Whats wrong with this plz :(
no error compiling this was a correction to my original done by
@-Dimensions-
but it still ownt work
any ideas please im catching on really quickly but still a noob </3
@-Dimensions-
but it still ownt work
any ideas please im catching on really quickly but still a noob </3

Code:
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL )
return true;
return false;
}
void __cdecl RunConsoleCommand( const char* cCommand )
{
void* address = ( void* ) 0x377A0198;
__asm
{
Push cCommand
call address
add esp, 0x4
}
}
void main()
{
if ( GetAsyncKeyState( VK_NUMPAD1 ) & 1 )
{
RunConsoleCommand("SkelModelStencil 1");
}
}
DWORD WINAPI dwHackThread( LPVOID )
{
while( !IsGameReadyForHook() )
Sleep( 100 );
main();
return EXIT_SUCCESS;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls( hDll );
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread( NULL, NULL, dwHackThread, NULL, NULL, NULL );
}
return TRUE;
}

