uhm... what do you mean with print? write
[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?
uhm... what do you mean with print? write
I love it when people keep their agreements /sarcasm ftw
Yes that.
You can help me? @lolbie
Nop sorry
post it in the c++ section
( i don't know nothing about c++ )
sorry
I love it when people keep their agreements /sarcasm ftw
yea. Well this is dedicated to BO ;P And Ikr that you don't know C++ but you know, my trolls fails.
dont know what you mean, funny that you use an alt to ask for help instead of using your mainchar..
Code:void (__cdecl*SendConsoleCommand)(int ,int ,char *) = (void (__cdecl *)(int,int,char *))0x00DEAD;
No no. I was banned at this one
Anyways I don't mean the send command to console. I want to write a text in the console. Like that shit.."==== FS_Startup ===="
EDIT:
Oh wait I think I got it...
Code:typedef void (Com_Printf_)(char*); Com_Printf_ *Com_Printf = (Com_Printf_*)0x44FAA0;
Last edited by ♪~ ᕕ(ᐛ)ᕗ; 07-07-2011 at 06:23 AM.