![]() |
|
|
#11 |
|
Архивный участник
Join Date: Jun 2005
Posts: 258
|
For debugging purposes or if you are just generally interested in outputting text to the server console, you can use this function:
Code:
void ConsoleMessage(WCHAR * pMessage)
{
DWORD message = (DWORD)pMessage;
__asm
{
push message
push 0 //Message colors: 0 for black, 2 for red
push 18AA81D8h
call LOG_ADD //DWORD * to address of log_add function
add esp, 0Ch //fix stack pointer
}
}
Possible reasons for wanting to do this: 1. Just to look cool when loading ExUser lol 2. Debugging 3. Prompting admins when something bad happens or whatever your mind can think of |
|
|
|
|