I've been working on an in game console but I've encountered some problems.
I have defined this function:
which works fine for stuff like r_fog 0, disconnect or com_maxfps 90.Code:static const DWORD CA = (DWORD) 0x564760;
void send(const char* command)
{
_asm
{
push command
push 0
push 0
call CA
add esp, 0x0C
}
}
However, it fails for commands like cg_fov 90, name Something or clientkick 1.
I've also tried another function:
which also shows the same behavior.Code:static const DWORD CA2 = (DWORD) 0x563BA0;
void send2(const char* command)
{
_asm
{
push command
push 0
call CA2
add esp, 0x8
}
}
Does someone know what I'm doing wrong?