YSI\y_ini Order Question?
#1

Hi guys well i do not have any problem with scripting but i want to know, why y_ini writes data like this (see picture)? I want to make Password on the top of the list. How can i do this?
Reply
#2

Just make the password save before those?
Reply
#3

I did.
Reply
#4

But nothing helps? Any Solution?
Reply
#5

Post the code for the register dialog

PS. This should not effect anything btw.
Reply
#6

Код:
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Money",0);
                INI_WriteInt(File,"Admin",0);
                INI_Close(File);
   
                gPlayerLoggedIn[playerid] = 1;
This is for DIALOG_REGISTER case!

Код:
function SaveUser_data(playerid)
{
        new INI:File = INI_Open(UserPath(playerid));
	INI_SetTag(File,"data");
	INI_WriteInt(File,"Money",GetPlayerMoney(playerid));
	INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
	INI_Close(File);
}
This is for savinguserdata (under OnPLayerDisconnect)
Reply
#7

That's weird. Post the code when you save all the stuff.
Reply
#8

I did function SaveUser_data(playerid) is for saving all the stuff when player disconnect!
Reply
#9

Quote:
Originally Posted by Stefcaaaa
Посмотреть сообщение
I did function SaveUser_data(playerid) is for saving all the stuff when player disconnect!
Yes post that function.
Reply
#10

Код:
function SaveUser_data(playerid)
{
        new INI:File = INI_Open(UserPath(playerid));
	INI_SetTag(File,"data");
	INI_WriteInt(File,"Money",GetPlayerMoney(playerid));
	INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
	INI_Close(File);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)