Raised This Month: $ Target: $400
 0% 

Simulating UTIL_LogPrintf


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 07-22-2017 , 18:21   Re: Simulating UTIL_LogPrintf
Reply With Quote #1

@PartialCloning you should use g_pEngTable like in emessage_begin.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
PartialCloning
Senior Member
Join Date: Dec 2015
Old 07-22-2017 , 18:37   Re: Simulating UTIL_LogPrintf
Reply With Quote #2

Quote:
Originally Posted by PRoSToTeM@ View Post
@PartialCloning you should use g_pEngTable like in emessage_begin.
I "try" to read C++ code and to make sense of it but that's as far as my knowledge of it goes.

If you're up for it and g_pEngTable isn't going to take too much of your time you should totally go for it. It would be a useful native to have.
PartialCloning is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 07-24-2017 , 17:01   Re: Simulating UTIL_LogPrintf
Reply With Quote #3

Quote:
Originally Posted by PRoSToTeM@ View Post
@PartialCloning you should use g_pEngTable like in emessage_begin.
amxmodx.cpp
Code:
enginefuncs_t *g_pEngTable = NULL; static cell AMX_NATIVE_CALL elog_message(AMX *amx, cell *params) /* 1 param */ {     int len;     g_langMngr.SetDefLang(LANG_SERVER);     char* message = format_amxstring(amx, params, 1, len);     message[len++] = '\n';     message[len] = 0;     g_pEngTable->pfnAlertMessage(at_logged, message);     return len; }

How does that look?
PartialCloning is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode