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_sDate, sizeof(g_sDate), "%F", GetTime());
BuildPath(Path_SM, g_sPath, sizeof(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