Hi,
I've used SQL alot, but both SQLx and DBI modules seem too confusing. Can someone write me some code:
- I need to set g_number[id] (a player specific variable) to the one saved in MySQL database (you can use steam_id, nick, ip or even id, I don't care), if it is set. If its not, set it and default to zero.
- When player disconnects, I want to save the g_number[id] to MySQL.
If you don't understand, I can write a PHP code that does that.