I am currently developing a hotkey base CA NA trainer. However, when I use this PTC:
Nothing happens. Can someone please help me? Thanks in advance.Code:void PushToConsole( __in const char* Command ) { void* Console = ( void* )0x48B650; //ADDRESS_CONSOLE_UNWRAPPED __asm { PUSHAD PUSH Command ; MOV EAX, Console ; CALL EAX ; ADD ESP, 0x4 ; POPAD } }; ... PushToConsole( "SkelModelStencil 1" );
Try this:
typedef INT(WINAPIV *tPush)(CONST CHAR *szCommand);
tPush ExecuteConsole = (tPush)ADDR_CONSOLEUNWRAPPED; //Gellin's logger
@Otaviomorais you use macros, it's a bit slower and higher level
Okay, before we fight over macros and void* addresses.
It doesn't matter really, as long as they all point to the same thing.
@OP are you using the PTC method inside of an Engine function? or through your own thread.
I think it only works within an Engine function. Also, It doesn't matter really what type of PTC you use, they both do the same thing and the delay is barely noticable ingame.
I'd also advise you to check your Address as that may be the cause of the error.
No I do not make game hacks anymore, please stop asking.