ok so im working on a opk
here is my source
Code:
#include <windows.h>
#define charposoffset 0x66F34 //player pointer
#define otherplyrptr 0x37113378 //random pointer
#define posyoffset 0xCC
#define posxoffset 0xC8
#define yoffset 0xCC
#define posy
#define playertarget
#define posptr
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* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
posptr=NULL;
posptr = (DWORD)GetModuleHandleA("ClientFX.fxd");
posptr = charposoffset;
memcpy(&posy,(void *)(posptr),4);
posy = posyoffset;
memcpy(&playertarget,(void *)(otherplyrptr),4);
playertarget = yoffset;
while(true)
{
PushToConsole("SkelModelStencil 1");
if(posy > posyoffset && playertarget > yoffset)
{
*(float*)playertarget = *(float*)posy;
*(float*)(playertarget+0x4) = *(float*)(posy+0x4);
*(float*)(playertarget-0x4) = *(float*)(posy-0x4);
}
}
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
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;
}
and when i compile i get theis errors but i dont understand
Code:
1>------ Rebuild All started: Project: telekill, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'telekill', configuration 'Debug|Win32'
1>Compiling...
1>telekill.cpp
1>c:\users\--------\documents\visual studio 2008\projects\telekill\telekill\telekill.cpp(33) : error C2143: syntax error : missing ';' before '='
1>c:\users\--------\documents\visual studio 2008\projects\telekill\telekill\telekill.cpp(34) : error C2143: syntax error : missing ';' before '='
1>c:\users\--------\documents\visual studio 2008\projects\telekill\telekill\telekill.cpp(35) : error C2143: syntax error : missing ';' before '='
1>c:\users\--------\documents\visual studio 2008\projects\telekill\telekill\telekill.cpp(36) : error C2059: syntax error : ','
1>c:\users\--------\documents\visual studio 2008\projects\telekill\telekill\telekill.cpp(37) : error C2143: syntax error : missing ';' before '='
1>c:\users\--------\documents\visual studio 2008\projects\telekill\telekill\telekill.cpp(38) : error C2059: syntax error : ','
1>c:\users\--------\documents\visual studio 2008\projects\telekill\telekill\telekill.cpp(39) : error C2143: syntax error : missing ';' before '='
1>c:\users\--------\documents\visual studio 2008\projects\telekill\telekill\telekill.cpp(44) : error C2059: syntax error : '>'
1>c:\users\--------\documents\visual studio 2008\projects\telekill\telekill\telekill.cpp(45) : error C2143: syntax error : missing ';' before '{'
1>c:\users\--------\documents\visual studio 2008\projects\telekill\telekill\telekill.cpp(46) : error C2059: syntax error : '='
1>Build log was saved at "file://c:\Users\--------\Documents\Visual Studio 2008\Projects\telekill\telekill\Debug\BuildLog.htm "
1>telekill - 10 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========[
help please