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

I need a log function


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
1ka
Senior Member
Join Date: Jun 2012
Old 01-19-2015 , 16:42   I need a log function
Reply With Quote #1

I need a log function
log file in the addons out directory
For example where is motd.txt file there motd2.log or *.txt

Code:
    register_dictionary("motd2.txt");
    get_datadir(log_file, sizeof(log_file) - 1);
    add(log_file, sizeof(log_file) - 1, "/motd2.txt");  // <<<< This is a directory inside addons - data/ :-(
__________________
Sorry for my bad english.

Last edited by 1ka; 01-19-2015 at 16:44.
1ka is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 01-19-2015 , 18:22   Re: I need a log function
Reply With Quote #2

get_datadir(log_file, sizeof(log_file) - 1);

this gets the addons/amxmodx/data directory, don't use it if you don't want it?
jimaway is offline
1ka
Senior Member
Join Date: Jun 2012
Old 01-21-2015 , 11:22   Re: I need a log function
Reply With Quote #3

i want "addons" out directory
where is motd.txt file

For example: cstrike/log.txt
__________________
Sorry for my bad english.

Last edited by 1ka; 01-21-2015 at 11:23.
1ka is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-21-2015 , 18:56   Re: I need a log function
Reply With Quote #4

Quote:
Originally Posted by 1ka View Post
i want "addons" out directory
That makes absolutely no sense.

Quote:
Originally Posted by 1ka View Post
where is motd.txt file

For example: cstrike/log.txt
Then simply use "log.txt".
__________________

Last edited by fysiks; 01-21-2015 at 18:57.
fysiks 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:13.


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