How To Make Saving Data System Using Yini\Ysi - 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: How To Make Saving Data System Using Yini\Ysi (
/showthread.php?tid=446761)
How To Make Saving Data System Using Yini\Ysi -
Kuntum123 - 27.06.2013
Hello I wanna create the saving system like obect, I Just Know Ho To Make Saving Player Data System, any tutorial ?
Re: How To Make Saving Data System Using Yini\Ysi -
Cjgogo - 27.06.2013
The easiest way is to use Search function, and find a tutorial, good luck!
Re: How To Make Saving Data System Using Yini\Ysi -
Kuntum123 - 27.06.2013
i just search it and i just found "Player Data"
Re: How To Make Saving Data System Using Yini\Ysi -
Cjgogo - 27.06.2013
And what objects do you exactly want to save, that's what me, and probably others don't get!?
Re: How To Make Saving Data System Using Yini\Ysi -
GODEX - 27.06.2013
I prefer using DINI saving, much easier to code and use as a saving system. Over anything though use MySQL, most efficient and great system ever built.
Код:
dini_IntSet(file, "Humanity", AccountInfo[playerid][pHumanity]);
dini_IntSet(file, "AdminLevel",AccountInfo[playerid][pAdmin]);
dini_IntSet(file, "WaterBottle",AccountInfo[playerid][pWaterBottle]);
dini_IntSet(file, "Tent",AccountInfo[playerid][pTent]);
dini_IntSet(file, "Missle",AccountInfo[playerid][pMissle]);
dini_IntSet(file, "CheckedBox",AccountInfo[playerid][pCheckedBox]);
dini_IntSet(file, "Others Team",AccountInfo[playerid][pOthers]);
Thats just an example, but you must open the file and then close it after, failing to do this will corrupt your files
Re: How To Make Saving Data System Using Yini\Ysi -
DobbysGamertag - 27.06.2013
Quote:
Originally Posted by GODEX
I prefer using DINI saving, much easier to code and use as a saving system. Over anything though use MySQL, most efficient and great system ever built.
Код:
dini_IntSet(file, "Humanity", AccountInfo[playerid][pHumanity]);
dini_IntSet(file, "AdminLevel",AccountInfo[playerid][pAdmin]);
dini_IntSet(file, "WaterBottle",AccountInfo[playerid][pWaterBottle]);
dini_IntSet(file, "Tent",AccountInfo[playerid][pTent]);
dini_IntSet(file, "Missle",AccountInfo[playerid][pMissle]);
dini_IntSet(file, "CheckedBox",AccountInfo[playerid][pCheckedBox]);
dini_IntSet(file, "Others Team",AccountInfo[playerid][pOthers]);
Thats just an example, but you must open the file and then close it after, failing to do this will corrupt your files
|
You talk about efficiency, yet recommend using Dini.
There's a tutorial by Noobienoob (i think thats his name) that shows you exactly how to do it. As you mentioned using MySQL. It's harder to grasp than y_ini.