Converting Dudb to Y_ini | rep+ - 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: Converting Dudb to Y_ini | rep+ (
/showthread.php?tid=464894)
Converting Dudb to Y_ini | rep+ -
Mr.Faqahat - 19.09.2013
Hello, I Am using an Admin system which saves account using lethaldudb And i have about 40k accounts Saved in that
I want to use an admin system that saves account y_ini. the problem is i want to move those 40k accounts to y_ini. Is it possible to do that? Its ok for me to use both system if its necessary i want to make something like when player login on His old Account It makes a Copy of his account as y_ini.
Thanks
Re: Converting Dudb to Y_ini | rep+ -
DanishHaq - 19.09.2013
Keep your old registration system for now, and when a player leaves the game, create him a new y_ini compatible file that will save there (if he doesn't have one already). And when the player connects, check if that file exists, if not, load the old user account, if yes, load the new user account.
Re: Converting Dudb to Y_ini | rep+ -
Mr.Faqahat - 19.09.2013
Thats Exactly what i want to do but
Quote:
Originally Posted by DanishHaq
when a player leaves the game, create him a new y_ini compatible file that will save there
|
How am i going to do it any idea please
Re: Converting Dudb to Y_ini | rep+ -
DanishHaq - 19.09.2013
Use
pawn Код:
new string[50], name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "/NewAccounts/%s.ini", name);
if(fexist, string)
{
// Something or other here
}
else
{
// Create his file here
}
Respuesta: Converting Dudb to Y_ini | rep+ -
hotspicytaco - 19.09.2013
Check this out:
http://pastebin.com/cU0s7BA0
Re: Respuesta: Converting Dudb to Y_ini | rep+ -
Mr.Faqahat - 20.09.2013
Quote:
Originally Posted by LuiisRubio
|
Thanks But but But
This paste has been removed!
Respuesta: Converting Dudb to Y_ini | rep+ -
hotspicytaco - 20.09.2013
Sorry, my bad.
http://pastebin.com/cU0s7BA0