SA-MP Forums Archive
Best ways to convert Y_ini 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: Best ways to convert Y_ini to mysql (/showthread.php?tid=559791)



Best ways to convert Y_ini to mysql - AdamsP - 25.01.2015

Hey guys, I'd like some help converting my gamemode from y_ini to mysql (latest version). Seems very difficult for me cause there are many features and I can't find any stock that saves players data, only callbacks (onplayerofflinelogib,onplayerofflinesave etc.) What's the best way to convert it? And where I should start first? Login/register system, saving data or what?
Any good tutorial appreciated or some instructions/help.

P.S please do not tell me to start the gamemode from scratch (obviously I'm using edited one)


Re: Best ways to convert Y_ini to mysql - Ironboy - 25.01.2015

First you need to study the basics of mysql https://sampforum.blast.hk/showthread.php?tid=485633


Re: Best ways to convert Y_ini to mysql - MicroD - 25.01.2015

This little gadget might help you: https://sampforum.blast.hk/showthread.php?tid=245893
Whops that's not the solution the best way to convert it is to learn mysql as one suggested above me.


Re: Best ways to convert Y_ini to mysql - AdamsP - 25.01.2015

I know the basics, the problem is; my gamemode has no pName (or w/e) inside the enum pInfo. Not even a global variable, how should I store the username in the database?

My ini files are like username.ini (%s.ini).


Re: Best ways to convert Y_ini to mysql - BroZeus - 25.01.2015

****** and find pre-made MySQL login/register system and have a look at their script it will give you a idea of how to do it


Re: Best ways to convert Y_ini to mysql - AdamsP - 25.01.2015

Another question is; is it possible to keep the y_ini system till I fully convert the gamemode into Mysql? Like I load/save the username,positions,password,skin,gender (the basics) and the others .ini? I'm saying this because it will take much time for this. Do you think this will make the gamemode disfunctional?


Re: Best ways to convert Y_ini to mysql - AdamsP - 25.01.2015

Can someone tell me what's the difference between mysql r5 r6 r7 and r15? Is there any changelogs file or something? (sorry for bumping but I need this.)