Save problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Save problem (
/showthread.php?tid=272170)
Save problem -
geerdinho8 - 27.07.2011
I have this on playerdisconnect:
Код:
if(gPlayerLogged[playerid] == 1)
{
dini_IntSet(file, "Score", GetPlayerScore(playerid));
dini_IntSet(file, "Money", GetPlayerMoney(playerid));
dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]);
dini_IntSet(file, "VIP",PlayerInfo[playerid][pVIP]);
}
But it doesnt save any of it, but if i change the userfiles, it loads everything i changed..
So it must be at onplayerdisconnect what makes it fail.
Maybe someone can tell me what i did wrong..
Re: Save problem - Max_Coldheart - 27.07.2011
Код:
if(gPlayerLogged[playerid] == 1)
{
dini_IntSet(file, "Score", GetPlayerScore(playerid));
dini_IntSet(file, "Money", GetPlayerMoney(playerid));
dini_IntSet(file, "AdminLevel", dini_Int(file, "pAdminLevel"));
dini_IntSet(file, "VIP", dini_Int(file, "pVIP"));
}
Regards
Max_Coldheart