PTC Method :D

Posts 3139 of 39 · Page 3 of 3
Can't we just write

Code:
typedef void (*PTCtype) (const char*);
PTCtype PTCaddy = (PTCtype)0x485FA0;
....

then call

Code:
PTCaddy("whatevercommand");
Quote Originally Posted by yodaliketaco View Post
Can't we just write

Code:
typedef void (*PTCtype) (const char*);
PTCtype PTCaddy = (PTCtype)0x485FA0;
....

then call

Code:
PTCaddy("whatevercommand");
good job...
work too here ;D
Quote Originally Posted by flameswor10 View Post
Code:
void __cdecl RunConsoleCommand( const char* cCommand)
{
	void* address = ( void* ) ADDR_CONSOLEUNWRAPPED;

	__asm
	{
		Push cCommand
		call address
		add esp, 0x4
	}
}
Much smaller, Much Simpler, Much easier.
flameswor10 what console command do you use to push? RunConsoleCommand?
Quote Originally Posted by steven1578 View Post
flameswor10 what console command do you use to push? RunConsoleCommand?
you can call it whatever you like. The first line is declaring the function, maybe learn some basic C++?
is that PTC working? or is the one flame using working?
Quote Originally Posted by racardo View Post
is that PTC working? or is the one flame using working?
In CABR it works!
I think nobody has tested it on the CANA.
Thanks baraozin.
Helped me a lot, I could not use the codes in PTC '-'.
I bet that will really help people.
It took my thanks.
dude why add all the extra unddeded stuff i hate that yeah it will complie but it makes the .dll bigger longer to upload longer to viruse scan makin the .cpp much larger much more complicated lol
Quote Originally Posted by Skaterforeva1 View Post
dude why add all the extra unddeded stuff i hate that yeah it will complie but it makes the .dll bigger longer to upload longer to viruse scan makin the .cpp much larger much more complicated lol
It only affects the DLL size by a byte.
Nothing to worry about
Posts 3139 of 39 · Page 3 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?