SA-MP Forums Archive
Y_ini - 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: Y_ini (/showthread.php?tid=585999)



Y_ini - NeverKnow - 18.08.2015

Guys my saving system is bugged. i need help from you guys

i was first using dini and now i switched to Y_ini cuz most of the players told me to use this and told me its fast,
but i am a newbie with it and everything gets bugged =/

i use parsefile to load stats but i actualy dont even understand how parsefile works if someone can explain me?

i have 2 modes and i seperate the stats from each other but it gets bugged, in mode 2 i get the stats from mode 1 and when you leave you lose all ur stats.

pawn Код:
//i use this on mode 1:
INI_ParseFile(UserPath(playerid), "LoadUser_PlayerStats", .bExtra = true, .extra = playerid);

forward LoadUser_PlayerStats(playerid,name[],value[]);
public LoadUser_PlayerStats(playerid,name[],value[])
{
    INI_Int("Money",info[playerid][Money]);
    INI_Int("Score",info[playerid][Score]);
}

//i use this on mode 2:
INI_ParseFile(UserPath(playerid), "LoadUser_PlayerStats2", .bExtra = true, .extra = playerid);

forward LoadUser_PlayerStats2(playerid,name[],value[]);
public LoadUser_PlayerStats2(playerid,name[],value[])
{
    INI_Int("Money",info[playerid][Money]);
    INI_Int("Score",info[playerid][Score]);
}
also want to know if you can unset a value??
dini was so easy but this i get confused


Re: Y_ini - NeverKnow - 18.08.2015

ok everyone hates me