AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Message Logging (https://forums.alliedmods.net/showthread.php?t=7118)

diamond-optic 07-05-2006 19:20

Re: Message Logging
 
:)

this plugin has helped me countless times...

great stuff! lol

Ramono 09-10-2006 08:45

Re: Message Logging
 
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"

sawce 10-04-2006 02:05

Re: Message Logging
 
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

DS 10-04-2006 07:22

Re: Message Logging
 
Quote:

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

Hello sawce :gyar:

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 :sadpirate:)

diamond-optic 10-04-2006 18:28

Re: Message Logging
 
awesome lol i love this plugin.. probably the most useful thing here

Herb1e 11-01-2006 00:26

Re: Message Logging
 
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?

sawce 11-01-2006 02:01

Re: Message Logging
 
Quote:

Originally Posted by Herb1e (Post 398068)
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)

Herb1e 11-01-2006 06:23

Re: Message Logging
 
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. :(

diamond-optic 11-01-2006 09:34

Re: Message Logging
 
well adminchat messages are also saved to the AMXX log files.. so theres a little less clutter in those for you to go thru...

XxAvalanchexX 12-30-2006 17:43

Re: Message Logging
 
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.


All times are GMT -4. The time now is 23:20.

Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.