Raised This Month: $ Target: $400
 0% 

How can i log something to UDP but not file?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
seves985
Junior Member
Join Date: Mar 2013
Old 01-23-2017 , 12:57   How can i log something to UDP but not file?
Reply With Quote #1

I want to modify a script to log data only via UDP but not to a file.

I found out that the annoying messages were logged via:
Code:
log_message ("[Fly] successfully loaded.")
After searching a bit within the amxmodx directory, i get the file amxmodx.inc and found on the AMX Mod X API this information:
Code:
native log_message(const message[], any:...);
Than i made a second instance of log_message like...
Code:
native log_message_udp(const message[], any:...);
...and changed any log_message within the script to log_message_udp.

So for now, i think i need to modify the part with any: but i dont know how.

The documentation doesn't help me a lot at this point.

Any hints?

Thanks in advance!

--
Best regards
Alex

Last edited by seves985; 01-23-2017 at 13:00. Reason: signature
seves985 is offline
 


Thread Tools
Display Modes

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 21:00.


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