Ok, I'm trying to write to a log file. I have sucessfully done that that using the following code:
Code:
log_to_file("admin_bans.txt","%s TempBanned %s<%d> for %s minutes Due to: %s",name,name2,userid2,minutes,reason)
and
log_to_file("Bans/admin_bans.txt","%s TempBanned %s<%d> for %s minutes Due to: %s",name,name2,userid2,minutes,reason)
What I'm trying to do is get the file to a specific folder above the server folder.
Code:
log_to_file("c:/SERVERS/Bans/admin_bans.txt","%s TempBanned %s<%d> for %s minutes Due to: %s",name,name2,userid2,minutes,reason)
In mysearch to find an answer on the forums, I have found out that amxx doesn't want us to use log_to_file anymore and say to use log_amx. Well, that doesn't even give an option for a different file.
Is there any way to write to a log file the preceeds the server in its path???
(If anyone is wondering, I run 5 servers and I would like to log every ban that my admins do to 1 location vs having to check each server's log.)