SA-MP Forums Archive
INI user accounts to mysql - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: INI user accounts to mysql (/showthread.php?tid=652237)



INI user accounts to mysql - Mokless - 06.04.2018

I was saving user accounts through Y_INI and now I want to convert them into mysql based one.
I converted the scripting part but I don't get how can I convert these accounts to mysql? Any help?


Re: INI user accounts to mysql - Rektumiliam - 06.04.2018

https://sampforum.blast.hk/showthread.php?tid=245893

Try this one.


Re: INI user accounts to mysql - Mokless - 06.04.2018

Quote:
Originally Posted by Rektumiliam
Посмотреть сообщение
Actually it's a new script so the structure is kinda different. Can I just convert accounts to mysql? without other parts like cash, kills, deaths, etc..?

If I just convert accounts, they don't have to re-register again because it is a new script.


Re: INI user accounts to mysql - Mugala - 06.04.2018

when player connects, check the .ini saved accounts and mysql saved accounts (both)
if player have only .ini account, just load his .ini data and delete this .ini file, than save with MySQL.
it's very simple and easy, I hope you understand.