How To Make Saving Data System Using Yini\Ysi
#1

Hello I wanna create the saving system like obect, I Just Know Ho To Make Saving Player Data System, any tutorial ?
Reply
#2

The easiest way is to use Search function, and find a tutorial, good luck!
Reply
#3

i just search it and i just found "Player Data"
Reply
#4

And what objects do you exactly want to save, that's what me, and probably others don't get!?
Reply
#5

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
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)