Dini dont save! - 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: Dini dont save! (
/showthread.php?tid=340708)
Dini dont save! -
lonako45 - 08.05.2012
OK
I create :
PHP код:
public OnPlayerConnect(playerid)
{
dini_Create(DiniHelper(playerid));
dini_Set(DiniHelper(playerid),"PlayerName",GetName(playerid));
dini_IntSet(DiniHelper(playerid),"HelperLevel",0);
return 1;
}
OK good !
but if I get me Helperlevel = 2
and Im leave the sever and connect the dini file reset !!
how I do if I leave and connect to server the dini saved?
Help?
Re: Dini dont save! -
TzAkS. - 08.05.2012
You did when player connect to set HelperLevel to 0.
You need to make a variable for HelperLevel or use it if you have and when player disconect you need to save data and when player connect to load data.
Re: Dini dont save! -
lonako45 - 08.05.2012
OHH
How I Do that ?:P