Print to console
[highlight=cpp]void __declspec(naked) Con_Print(char* String)
{
/*va_list va;
char buf[300] = "";
va_start(va, String);
vsprintf(buf, String, va);
va_end(va);*/
static DWORD console = 0x0044FAA0;
__asm{
push String
push 0
call console
add esp, 8
};
}[/highlight]
So I got that code and I want to print a text into the console. Actually it works and the text gets printed the point is that it prints some cube characters of the hell. Can some1 please help me?
{
/*va_list va;
char buf[300] = "";
va_start(va, String);
vsprintf(buf, String, va);
va_end(va);*/
static DWORD console = 0x0044FAA0;
__asm{
push String
push 0
call console
add esp, 8
};
}[/highlight]
So I got that code and I want to print a text into the console. Actually it works and the text gets printed the point is that it prints some cube characters of the hell. Can some1 please help me?

@

