Converting Dudb to Y_ini | rep+
#1

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

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

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

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
}
Reply
#5

Check this out:
http://pastebin.com/cU0s7BA0
Reply
#6

Quote:
Originally Posted by LuiisRubio
Посмотреть сообщение
Thanks But but But
This paste has been removed!
Reply
#7

Sorry, my bad. http://pastebin.com/cU0s7BA0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)