Raised This Month: $119 Target: $400
 29% 

Message Logging


Post New Thread Reply   
 
Thread Tools Display Modes
diamond-optic
Veteran Member
Join Date: May 2005
Location: Upstate New York
Old 07-05-2006 , 19:20   Re: Message Logging
Reply With Quote #21



this plugin has helped me countless times...

great stuff! lol
__________________
diamond-optic is offline
Send a message via AIM to diamond-optic
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 09-10-2006 , 08:45   Re: Message Logging
Reply With Quote #22

This plugin is realy nice
But i have a little request:

Code:
amx_blockmsg "messageid"
causes funciton
set_msg_block(messageid,BLOCK_SET)
Code:
amx_unblockmsg "messageid"
causes funciton
set_msg_block(messageid,BLOCK_NOT)
and maybe:
amx_sendmessage(messageid,parm1,parm2,parm3,e tc...)
a int may me like this
"int 1"
string
"string blabla"
__________________
Um, hi.
Ramono is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 10-04-2006 , 02:05   Re: Message Logging
Reply With Quote #23

A string as an argument containing a valid format parameter (eg: "%s") will cause it to throw an error.

Changing log_msgf to:
Code:
/* Writes messages to log file depending on value of amx_ml_logmode */ log_msgf(const fmt[], {Float,Sql,Result,_}:...) {           static buffer[512]     vformat(buffer, 511, fmt, 2)         replace(buffer,511,"%","%%") // stop %s from messing it up         if (get_pcvar_num(g_cvarLogMode))         log_to_file(LOGFILE_NAME, buffer)     else         log_amx(buffer) }

fixes it

ps: hi ds
sawce is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 10-04-2006 , 07:22   Re: Message Logging
Reply With Quote #24

Quote:
Originally Posted by sawce View Post
A string as an argument containing a valid format parameter (eg: "%s") will cause it to throw an error.
Hello sawce

Thanks for finding this bug. It is now fixed in 1.16 along with a change to convert new-lines and tabs to ^n and ^t so the log file doesn't get stretched.

(Now Mr. Werror shall die of shame )
__________________
エル・プサイ・コングルゥ

Last edited by DS; 10-04-2006 at 07:24.
DS is offline
diamond-optic
Veteran Member
Join Date: May 2005
Location: Upstate New York
Old 10-04-2006 , 18:28   Re: Message Logging
Reply With Quote #25

awesome lol i love this plugin.. probably the most useful thing here
__________________
diamond-optic is offline
Send a message via AIM to diamond-optic
Herb1e
Junior Member
Join Date: Oct 2006
Old 11-01-2006 , 00:26   Re: Message Logging
Reply With Quote #26

Hi!
I need help with this plugin. I installed and its working but I want to log only chat messages and admin chat. How to do that?
Herb1e is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 11-01-2006 , 02:01   Re: Message Logging
Reply With Quote #27

Quote:
Originally Posted by Herb1e View Post
Hi!
I need help with this plugin. I installed and its working but I want to log only chat messages and admin chat. How to do that?
If you actually want to log the raw user message, hook TextMsg.

If you just want to see what your users are saying this isnt the plugin for you (its meant for developers), turn logging on ("log on" in console / some cfg file, or start hlds with the "+log on" option)
sawce is offline
Herb1e
Junior Member
Join Date: Oct 2006
Old 11-01-2006 , 06:23   Re: Message Logging
Reply With Quote #28

Yes I want to see what they are saying. I have logging enabled, but it is very difficult to find it in the log file.
Herb1e is offline
diamond-optic
Veteran Member
Join Date: May 2005
Location: Upstate New York
Old 11-01-2006 , 09:34   Re: Message Logging
Reply With Quote #29

well adminchat messages are also saved to the AMXX log files.. so theres a little less clutter in those for you to go thru...
__________________
diamond-optic is offline
Send a message via AIM to diamond-optic
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-30-2006 , 17:43   Re: Message Logging
Reply With Quote #30

I assume Damaged Soul isn't around anymore, but I wanted to point out anyway that Longs say that they are Bytes. Very confusing! The fix is easy, however.

Very nice work, though, DS, I use this plugin all the time.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply


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 16:39.


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