Posts: 1,018
Threads: 320
Joined: Jul 2010
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
Posts: 111
Threads: 24
Joined: Aug 2014
Reputation:
0
can u show me ur code plzz on player register
Posts: 1,018
Threads: 320
Joined: Jul 2010
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);
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Probably because starting a loop from the back uses one less variable. Why does it matter, honestly?