Best ways to convert Y_ini to mysql
#1

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)
Reply
#2

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

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.
Reply
#4

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).
Reply
#5

****** 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
Reply
#6

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?
Reply
#7

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.)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)