SA-MP Forums Archive
Dini Help - 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 Help (/showthread.php?tid=629161)



Dini Help - itachi - 21.02.2017

Please not save Admin..

Код:
stock Save(playerid)
{
new cesta[50];
format(cesta, sizeof(cesta), "/GG/Admin/%s.sav", Meno(playerid));
if(!dini_Exists(cesta))
{
dini_Create(cesta);
}
else
{
dini_IntSet(cesta, "AdminLevel", Admin[playerid]);
}
	return 1;
}

stock Load(playerid)
{
new cesta[50];
format(cesta, sizeof(cesta), "/GG/Admin/%s.sav", Meno(playerid));
if(!dini_Exists(cesta))
{
dini_Create(cesta);
}
else
{
Admin[playerid] = dini_Bool(cesta, "AdminLevel");
}
	return 1;
}



Re: Dini Help - Mencent - 21.02.2017

Hello.

Does your "%s.sav" folder exist?
If so, what is written in that?

If the folder exists then try to print "Admin[playerid]".


Re: Dini Help - RyderX - 21.02.2017

[Tutorial]Saving System using dini+dudb

Try using y_ini more better than that slow shit Dini,

[Include]y_ini - Fast INI file reading and writing.

And here is a tutorial about using y_ini:

[Tutorial]How to use y_ini

Best of luck


Re: Dini Help - Vince - 21.02.2017

Quote:
Originally Posted by RyderX
Посмотреть сообщение
Try using y_ini more better than that slow shit Dini,
I know right? People still using stuff that was made ten years ago. Quite literally in this case.

“Dark times lie ahead of us and there will be a time when we must choose between what is easy and what is right.
-Albus Dumbledore”



Re: Dini Help - GoldenLion - 21.02.2017

Quote:
Originally Posted by RyderX
Посмотреть сообщение
Try using y_ini more better than that slow shit Dini
or https://sampforum.blast.hk/showthread.php?tid=611399