This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Solved message logs without slash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Krystek.
Member
Join Date: May 2022
Old 02-08-2023 , 16:34   message logs without slash
Reply With Quote #1

Hello

I am looking for help, namely I want to get message logs if I do this it logs all messages even those from /.

HTML Code:
public send_log(id){	
	/*if(!is_user_connected(id))
		return;*/

	new message[192]
	read_args(message, charsmax(message));
	remove_quotes(message);
}

Last edited by Krystek.; 02-08-2023 at 18:29.
Krystek. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-08-2023 , 23:48   Re: message logs without slash
Reply With Quote #2

What are you talking about? I don't see any logging happening here. How is send_log() being called? What do you mean by "from /"?
__________________

Last edited by fysiks; 02-08-2023 at 23:50.
fysiks is offline
zXCaptainXz
Member
Join Date: May 2017
Old 02-09-2023 , 13:49   Re: message logs without slash
Reply With Quote #3

I think he means chat logs, he doesn't want to log player commands (when they type /me /hp etc...)

Add this check
PHP Code:
if(message[0]=='/') return 
zXCaptainXz is offline
Krystek.
Member
Join Date: May 2022
Old 02-09-2023 , 13:52   Re: message logs without slash
Reply With Quote #4

Solved
Krystek. 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 03:42.


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