Hey everybody, i'm new to making hacks for CA NA. Umm.. I have an error: so i'm using Visual C++ 2008 and CodeNever's source, I run on Vista 32bit.
What I have:
Code:
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void PushToConsole(const char* Command) {
DWORD CNADDIE = 0x007d9200;
void* Send = ( void* )*( DWORD* )(CNADDIE);
__asm
{
push Command;
call Send;
add esp, -3-1+2+6;
}
}
void main()
{
bool gravityHack = false;
bool chamsHack = false;
while(true)
{
//Gravity Hack
if(GetAsyncKeyState(VK_SPACE)<0){
gravityHack = !gravityHack;
if (gravityHack)
PushToConsole( "PlayerGravity 800" );
else
PushToConsole( "PlayerGravity -800" );
//NX Chams
if(GetAsyncKeyState(VK_NUMPAD0)<0){
chamsHack = !chamsHack;
if (chamsHack)
PushToConsole( "SkelModelStencil 1" );
else
PushToConsole( "SkelModelStencil 0" );
}
}
Sleep(200);
}
Error:
Code:
1>------ Build started: Project: tdfd, Configuration: Debug Win32 ------
1>Compiling...
1>Base.cpp
1>c:\users\jonathan\documents\visual studio 2008\projects\tdfd\tdfd\base.cpp(47) : fatal error C1075: end of file found before the left brace '{' at 'c:\users\jonathan\documents\visual studio 2008\projects\tdfd\tdfd\base.cpp(24)' was matched
1>Build log was saved at "file://c:\Users\Jonathan\Documents\Visual Studio 2008\Projects\tdfd\tdfd\Debug\BuildLog.htm"
1>tdfd - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
If you could help me fix it thanks alot! Well thanks for reading!
Oh and Please do not flame, I'm a noob :|