Dini2 problem
#1

So here is my user save system:

Код:
stock SavePlayer(playerid)
{
  	new file[64];
  	format(file, sizeof(file), "/Users/%s.ini", pInfo[playerid][pIme]);
    if(pInfo[playerid][pLogged] == 1 && ocitan[playerid] == 1)
    {
        if(dini_Exists(file))
        {
	  	dini_IntSet(file, "Kills", pInfo[playerid][pKills]);
                .
                .
                .
		dini_IntSet(file, "Skin", pInfo[playerid][pSkin]);
                //These lines don't get saved, Dini doesn't add them to the .ini file for some reason
	        dini_IntSet(file, "Pol", pInfo[playerid][pPol]);
	        dini_IntSet(file, "Drzava", pInfo[playerid][pDrzava]);
	        dini_IntSet(file, "Godine", pInfo[playerid][pGodine]);
	        dini_IntSet(file, "Registrovan", pInfo[playerid][pRegistrovan]);
		}
}
And only the last 4 variables don't get saved for some reason.

Any idea why?

I'm using Dini2 btw, it's a faster version of Dini.

EDIT:

Sorry for posting I solved it like 10 sec after I posted this.

The problem was that Dini2 reads/saves maximum of 64 lines per file by default. Just had to crank it up
Reply


Messages In This Thread
Dini2 problem - by andrejc999 - 01.03.2019, 21:18
Re: Dini2 problem - by SymonClash - 01.03.2019, 22:09
Re: Dini2 problem - by andrejc999 - 01.03.2019, 22:42
Re: Dini2 problem - by Infin1ty - 02.03.2019, 06:16

Forum Jump:


Users browsing this thread: 1 Guest(s)