Raised This Month: $51 Target: $400
 12% 

[ANY] Log Connections


Post New Thread Reply   
 
Thread Tools Display Modes
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 12-04-2012 , 09:50   Re: [ANY] Log Connections
Reply With Quote #11

Quote:
Originally Posted by Player 1 View Post
I didn't notice these functions before, thanks. LogToFileEx could simplify the code, but is it any more efficient that what I've done?
LogToFile & LogToFileEx are better choices since they're designed specifically for this purpose.
__________________
Dr. McKay is offline
isayldz
Member
Join Date: Nov 2012
Old 12-08-2012 , 07:11   Re: [ANY] Log Connections
Reply With Quote #12

can we show this on webpage? can we send this info steam id ip country sent directly to mysql i mean.. ?
isayldz is offline
ragnarox13
Junior Member
Join Date: Sep 2012
Old 12-09-2012 , 20:38   Re: [ANY] Log Connections
Reply With Quote #13

Quote:
L 12/10/2012 - 0911: [SM] Plugin encountered error 25: Call was aborted
L 12/10/2012 - 0911: [SM] Native "SetFailState" reported: Failed to create directory at /sourcemod/logs/connections - Please manually create that path and reload this plugin.
L 12/10/2012 - 0911: [SM] Displaying call stack trace for plugin "logconnections.smx":
L 12/10/2012 - 0911: [SM] [0] Line 27, /home/groups/alliedmodders/forums/files/1/7/9/3/9/7/112682.attach::OnPluginStart()
Can you help me with this?
ragnarox13 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 12-10-2012 , 06:58   Re: [ANY] Log Connections
Reply With Quote #14

Quote:
Originally Posted by ragnarox13 View Post
Can you help me with this?
Do what it says to do and create the sourcemod/logs/connections folder.
__________________
Dr. McKay is offline
Player 1
Member
Join Date: Apr 2012
Old 12-10-2012 , 19:57   Re: [ANY] Log Connections
Reply With Quote #15

Quote:
Originally Posted by ragnarox13 View Post
Can you help me with this?
There might be an issue with permissions on your server that is preventing SourceMod from creating a directory. Just manually create that path and it will work.

Last edited by Player 1; 12-10-2012 at 19:59.
Player 1 is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 12-31-2012 , 04:01   Re: [ANY] Log Connections
Reply With Quote #16

Quote:
Originally Posted by isayldz View Post
can we show this on webpage? can we send this info steam id ip country sent directly to mysql i mean.. ?
https://forums.alliedmods.net/showthread.php?p=1657024
__________________
DarthNinja is offline
island55
Senior Member
Join Date: Aug 2010
Location: charleston
Old 02-01-2013 , 11:49   Re: [ANY] Log Connections
Reply With Quote #17

i manually created the directory however the plugin still says i need to manually create it like it's not there?


edit: on line 20 of the source i removed the last backslash and it started working fine. i'm running windows for those curious, if it matters?

before:
Quote:
BuildPath(Path_SM, g_sFilePath, sizeof(g_sFilePath), "/logs/connections/");
after:
Quote:
BuildPath(Path_SM, g_sFilePath, sizeof(g_sFilePath), "/logs/connections");

Last edited by island55; 02-01-2013 at 12:27. Reason: fixed
island55 is offline
Player 1
Member
Join Date: Apr 2012
Old 02-01-2013 , 14:54   Re: [ANY] Log Connections
Reply With Quote #18

I also run windows with no problem like that, but you're right that slash probably shouldn't be there.
Player 1 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 02-01-2013 , 16:37   Re: [ANY] Log Connections
Reply With Quote #19

Get rid of the preceding slash.

PHP Code:
BuildPath(Path_SMg_sFilePathsizeof(g_sFilePath), "logs/connections/"); 
__________________
Dr. McKay is offline
Player 1
Member
Join Date: Apr 2012
Old 02-02-2013 , 11:48   Re: [ANY] Log Connections
Reply With Quote #20

Done.
Player 1 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 12:48.


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