18.12.2016, 13:16
Hmm i found next bug...
OnPlayerDeath: playerInfo[killerid][Kills] += 1;
Load: playerInfo[playerid][Kills] = dini_Int(path, "pKills");
Save: dini_IntSet(path, "pKills", playerInfo[playerid][Kills]);
And it works okay. File looks: pKills=1
But it's not resaving(not save again)
If you load your stats, and save with another value, e.g: playerInfo[killerid][Kills] = 100; and save this, file doesn't update.
Sorry for my English
OnPlayerDeath: playerInfo[killerid][Kills] += 1;
Load: playerInfo[playerid][Kills] = dini_Int(path, "pKills");
Save: dini_IntSet(path, "pKills", playerInfo[playerid][Kills]);
And it works okay. File looks: pKills=1
But it's not resaving(not save again)
If you load your stats, and save with another value, e.g: playerInfo[killerid][Kills] = 100; and save this, file doesn't update.
Sorry for my English