was the problem that i was trying to use
to read from an address that didnt exist because i wasnt in game?Code:pPlayerMgr = (cPlayerMgr*)(PlayerMgr);
still dosent work.. maybe someone should try it themselves
Last edited by kibbles18; 04-03-2011 at 11:41 AM.
im about ready to give up...
try
Code:pPlayerMgr->Yaw = 90.0f;
updated codeCode:#include <windows.h> #include "engine_class.h" void thread() { for(;;) { if(GetAsyncKeyState(VK_NUMPAD1)&1) { pPlayerMgr->Yaw = 90.0f; } Sleep(50); } } bool IsGameReadyForHook() { if( GetModuleHandleA( "d3d9.dll" ) != NULL && GetModuleHandleA( "ClientFX.fxd" ) != NULL && GetModuleHandleA( "CShell.dll" ) != NULL ) return true; return false; } DWORD WINAPI StartupThread(LPVOID) { while( !IsGameReadyForHook() ) Sleep(100); MessageBoxA(0,"CA Hooked, press OK to continue", "kibbles201", MB_OK); thread(); return 0; } BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpReserved ) { if( dwReason == DLL_PROCESS_ATTACH ) { MessageBoxA(0,"injected", "kibbles201", MB_OK); CreateThread( NULL, NULL, (LPTHREAD_START_ROUTINE)StartupThread, NULL, NULL, NULL); } return TRUE; }
someone else should try and see if theirs works!
Last edited by kibbles18; 04-03-2011 at 08:06 PM.
some more information that might be helpfull...
"PlayerMgr" is the address for the class PlayerManager - should i be using my local character address instead?
/close please
resolved.
issue: the sticky with all the newest addy had the wrong addy
man did u even do anything? lol getting everyone to do the work
NOOBJr (04-05-2011)
no i just typed out the code and found out the problem, no one helped me in the slightest bit except 1 person. no one did the work for me dumb ass