SA-MP Forums Archive
[HELP] Y_Ini writes data backward - 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: [HELP] Y_Ini writes data backward (/showthread.php?tid=565256)



[HELP] Y_Ini writes data backward - Luca12 - 26.02.2015

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


Re: [HELP] Y_Ini writes data backward - semara123 - 26.02.2015

can u show me ur code plzz on player register


Re: [HELP] Y_Ini writes data backward - Luca12 - 09.03.2015

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);



Re: [HELP] Y_Ini writes data backward - Vince - 09.03.2015

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


Respuesta: [HELP] Y_Ini writes data backward - JuanStone - 09.03.2015

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 .