#1

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

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

How come Mysql is much easier? O.o
Reply
#4

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

yes I've noticed that, So I don't have actually to use mysql? Y ini is good enough?
Reply
#6

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

Both are good, the only thing is that MySQL offers much more than Y_INI.

And I said, FOR ME MYSQL IS EASIER.
Reply
#8

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

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

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:
pawn Код:
#include <YSI\y_ini>
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)