Python Forum

Full Version: Retrieve variables from the log and send to the database
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.