I was to make a PTC like
PTC(" COMMAND HERE", Int of the Value);
I got everything down pack but 1 problem
I want it to be like this
Code:
void __cdecl PushToConsole(char* szVal, int value)
{
void* vSetVar = (void*)0x0046F620;
char scom[30];
sprintf(scom, szval & " %d", value);
/* You can see what i am trying to do. the joining of the 2 char*'s szval & " %d" that is my problem that i cannot get to work.. i never did much with char*. */
_asm
{
push scom
call vSetVar
add esp, 4
}
}
can someone help me out. I kno it looks pointless right now but i trying to get something new with it