Thread: [Solved] Generate file depend date
View Single Post
Author Message
Lmfao
Junior Member
Join Date: Oct 2011
Old 03-10-2022 , 10:56   Generate file depend date
Reply With Quote #1

Hello.
I want to generate a file with the date. This following code work.

But it doesn't generate a new file when the date change.
It change only if the server restart or if the plugin is reloaded.

Here's my code actualy.
PHP Code:
FormatTime(g_sDatesizeof(g_sDate), "%F"GetTime());
    
BuildPath(Path_SMg_sPathsizeof(g_sPath), "logs/test/custom_%s.log"g_sDate); 

But i don't know wich part of this original code is really needed for me.
https://github.com/alliedmodders/sou...ogger.cpp#L360

Last edited by Lmfao; 03-11-2022 at 09:01.
Lmfao is offline