01.03.2019, 21:18
So here is my user save system:
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
Код:
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]); } }
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