Y ini -
Sarra - 04.08.2014
Hi since Mysql looks so complicated , I decided to learn Y ini
but first what's a ini file? where and how is it created and how to I use it in my script? if there's a tutorial answering my questions, tell me please
I want to understand what a ini file is then I'll start learning y ini
Re: Y ini -
dirigent00 - 04.08.2014
For me, MySQL is much easier.
Y_INI is an extensive .INI based file reader and writer, also known as a 'File Management System' created by ******.
You will probably need register/login system, and I suggest you this one:
https://sampforum.blast.hk/showthread.php?tid=273088
Cheers.
Re: Y ini -
Sarra - 04.08.2014
How come Mysql is much easier? O.o
Re: Y ini -
Dignity - 04.08.2014
http://en.wikipedia.org/wiki/INI_file
Quote:
Originally Posted by Sarra
How come Mysql is much easier? O.o
|
It's not, and is usually not necessary as Y_INI is just as fast as MySQL. The only thing MySQL offers that Y_INI doesn't have is an external database and more flexible queries.
Re: Y ini -
Sarra - 04.08.2014
yes I've noticed that, So I don't have actually to use mysql? Y ini is good enough?
Re: Y ini -
Dignity - 04.08.2014
Yes. While many disagree, I personally think it's not necessary to use MySQL unless you are actually using the external database for something (such as pulling server data for a website; an UCP for example). I think ******(?) posted a more in depth reply about this somewhere but I can't find it anymore.
Re: Y ini -
dirigent00 - 04.08.2014
Both are good, the only thing is that MySQL offers much more than Y_INI.
And I said, FOR ME MYSQL IS EASIER.
Re: Y ini -
Don_Cage - 04.08.2014
Quote:
Originally Posted by Mionee
http://en.wikipedia.org/wiki/INI_file
It's not, and is usually not necessary as Y_INI is just as fast as MySQL. The only thing MySQL offers that Y_INI doesn't have is an external database and more flexible queries.
|
Indeed, I prefare Y_INI, yini offers alot aswell.
Re: Y ini -
Sarra - 04.08.2014
Anyways since I'm a beginner I'll just start with Y_ini looks easier, but again what's exactly y_ini ?? I just to include the Y_ini that start typing my code in my gamemode ? (ofcourse with new functions added) this is it? It's my first time so please explain to me if you don't mind
Re: Y ini -
Don_Cage - 04.08.2014
Yea, you have many tutorials about Y_INI/YSI basicly.
There is Masters includes and partly includes as timers, yini etc.
For yini only, you can do like this
Top:
Writing:
pawn Код:
stock SaveSomething()
{
new INI:myfile = INI_Open(TheSaveFile());
INI_SetTag(myfile, "Data");
INI_WriteString(myfile, "Something", var/enum);
INI_Close(myfile);
return true;
}
Aswell use INI_WriteInt,INI_WriteFloat.
For load use
Just INI_String,INI_Int,INI_Flaot.