What's new
Red County Roleplay

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Chatlog archiever

Status
Not open for further replies.

Spydah

Donator
Joined
Jan 21, 2016
Messages
144
Location
The Netherlands
I've tried a few but none of them seem to work at the end..
Can someone help me or show me how to properly set this up?
 
Code:
; Set the working directory to the SA-MP directory...
sampdir:=A_MyDocuments . "\GTA San Andreas User Files\SAMP\"
SetWorkingDir, %sampdir%
 
; If we're working in the wrong directory (ie you can't find the
; SA-MP config file) then return an error and exit.
IfNotExist, sa-mp.cfg
  MsgBox, Error: Could not find SA-MP directory. Expected location: %sampdir%
IfNotExist, sa-mp.cfg
  return
 
Loop {
  ; Wait until GTA:SA is launched by SA-MP.
  WinWait GTA:SA:MP
 
  ; Generate the filename based on the time SA-MP is launched.
  filename:="chatlog-" . A_YYYY . A_MM . A_DD . "-" . A_Hour . A_Min . A_Sec
 
  ; Now wait for it to close before continuing.
  WinWaitClose GTA:SA:MP
 
  ; Copy the chatlog to the separate directory with the filename we generated earlier.
  FileCopy, chatlog.txt, chatlogarchiver\%filename%.txt
 
  ; Check that the file was actually copied, and return the location if it worked. If not,
  ; return a generic error because I can't be bothered to code in methods of working out
  ; what went wrong.
  IfExist, chatlogarchiver\%filename%.txt
    MsgBox, Chatlog saved as %sampdir%\chatlogarchiver\%filename%.txt.
  IfNotExist, chatlogarchiver\%filename%.txt
    MsgBox, There was an error and your chatlog was NOT archived.
}
 
return
 
I personally use this one. It creates a folder called 'chatlogarchiver' in your 'GTA San Andreas User Files' folder. All you have to do is launch it before launching GTA:SA.
 
Lee said:
>download lsrp+
>chatlog archiver
>enable
lsrp+ always stops working.. It freezes everytime :roll:

Connection said:
I personally use this one. It creates a folder called 'chatlogarchiver' in your 'GTA San Andreas User Files' folder. All you have to do is launch it before launching GTA:SA.
I run this as Administrator plus I manually created the folder inside the desired one but I keeps saying the message. "There was an error and your chatlog could NOT be archived."
 
I'd suggest using an edit I made to the chatlog archiver AHK script. When I started using it a few years ago, I noticed that it created a new .txt file per game session. My edit only creates a new .txt file per day, which should help keep your folder quite clean.

https://pastebin.com/vnimgCyS
 
TommyB said:
I'd suggest using an edit I made to the chatlog archiver AHK script. When I started using it a few years ago, I noticed that it created a new .txt file per game session. My edit only creates a new .txt file per day, which should help keep your folder quite clean.

https://pastebin.com/vnimgCyS
Cool but where should I add that, don't really understand it ghehe
 
Status
Not open for further replies.
Back
Top