AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I need a log function (https://forums.alliedmods.net/showthread.php?t=255736)

1ka 01-19-2015 16:42

I need a log function
 
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/ :-(


jimaway 01-19-2015 18:22

Re: I need a log function
 
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?

1ka 01-21-2015 11:22

Re: I need a log function
 
i want "addons" out directory
where is motd.txt file

For example: cstrike/log.txt

fysiks 01-21-2015 18:56

Re: I need a log function
 
Quote:

Originally Posted by 1ka (Post 2251973)
i want "addons" out directory

That makes absolutely no sense.

Quote:

Originally Posted by 1ka (Post 2251973)
where is motd.txt file

For example: cstrike/log.txt

Then simply use "log.txt".


All times are GMT -4. The time now is 09:10.

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