Dini Help
#1

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;
}
Reply
#2

Hello.

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

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

[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
Reply
#4

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”
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)