SA-MP Forums Archive
how to save enum into .txt - 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 save enum into .txt (/showthread.php?tid=483016)



how to save enum into .txt - Chrisli520 - 23.12.2013

Код:
enum pbag
{
	sID,
	bItem,
	bID,
	bAmount,
};
new baoguo[MAX_PLAYERS][31][pbag];
each player has this enum for their bag item, how can i save these value into txt and how to load?


Re: how to save enum into .txt - Excelize - 23.12.2013

You cant, you need to use either Dini or MySQL to save it.


Re: how to save enum into .txt - Chrisli520 - 23.12.2013

Quote:
Originally Posted by Excelize
Посмотреть сообщение
You cant, you need to use either Dini or MySQL to save it.
yes, i mean using dini to save it, but how?


Re: how to save enum into .txt - Hansrutger - 23.12.2013

Quote:
Originally Posted by Excelize
Посмотреть сообщение
You cant, you need to use either Dini or MySQL to save it.
There are other ways as well, like ******'s invention y_ini :P

EDIT: I suggest you change to y_ini btw, it's a lot faster.