[HELP] Y_Ini writes data backward
#1

Hello. So I was create small data for users. And I register myself on server and check my ini file and it's all written backward.

For example in gamemode it goes

Password
AdminLvl
Leader
Member

but in ini file is

Member
Leader
AdminLvl
Password.

Why is that? Thanks
Reply
#2

can u show me ur code plzz on player register
Reply
#3

Here is the code from player register

pawn Code:
new buf[129];
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                WP_Hash(buf,sizeof(buf),inputtext);
                INI_WriteString(File,"Password",buf);
                INI_WriteInt(File,"Admin",0);
                INI_WriteInt(File,"Leader",0);
                INI_WriteInt(File,"Member",0);
INI_Close(File);
Reply
#4

Probably because starting a loop from the back uses one less variable. Why does it matter, honestly?
Reply
#5

Perhaps don't believe this, I use a short tag and the same thing happened to me, the solution was to add characters to the tag .
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)