#include <window.h>

Posts 1–2 of 2 · Page 1 of 1
#include <window.h>
Says "Illegal Preprocessor Directive"

#include <windows.h>

bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x377E7810 );
DWORD CNADDIE = 0x46F670;
void* Send = ( void* )*( DWORD* )(CNADDIE);
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp,4;
}
}
use this code

#include <windows.h>
bool hReady()
{
if(GetModuleHandle("ClientFX.fxd") != NULL
&& GetModuleHandle("CShell.dll") != NULL
&& GetModuleHandle("d3d9.dll") != NULL )
return TRUE;
return FALSE;
}

void hCreateFont(LPDIRECT3DDEVICE9 pDevice)
{
if(pFont == NULL)
{
D3DXCreateFont(pDevice, 14, 6, 500, 1, 0, 1, 0, 4, 0 | (0<<4), "Calibri", &pFont);
}
else
{
if(hDevice != pDevice)
{
hDevice = pDevice;

try
{
if(pFont != 0) pFont->Release();

} catch (...) {}

pFont = 0;
D3DXCreateFont(pDevice, 14, 6, 500, 1, 0, 1, 0, 4, 0 | (0<<4), "Calibri", &pFont);
}
}
}
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us