Python Forum
Retrieve variables from the log and send to the database
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Retrieve variables from the log and send to the database
#1
Hi, I need to write a bit of a complicated script (at least for me).
I need exactly this, on the path "C:\Users\pc\Documents\GTA San Andreas User Files\SAMP\" there is a file "chatlog.txt" and it contains a log (logical: D) and when the message of this the type in which the variables are marked (marked in green) and I need to get the variables that are marked in bold
[15:40:10] Player Hailender won the $50,000,000 lottery with a lottery 13
and it would be better to put them in a mysql database where I have a pre-created database "won" with a table "won" and columns "ID" (AUTO_INCREMENT), "price" and "number". Please write for how much you are able to write to me.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020