Need help with y_ini.
#1

Allright, so I've been using Dini for quite a long time now. Now, I want to upgrade to something faster, as I've heard, Dini was one of the slowest *.ini file writers/readers. I then read something about ******'s y_ini. It seemed like something I wanted to use, but I've a few questions about it.

Can y_ini be used together with enum?
With all the examples I've seen around the forum, people always used PVars. But can enum still be used, as I think it's easier?

Example:
pawn Код:
enum PlayerData
{
    Name[MAX_PLAYER_NAME]
}
new pData[MAX_PLAYERS][PlayerData]

INI_WriteString(ini, "NAME", pData[playerid][Name]);
Can someone please explain, a little more in depth, how you read strings, integers and floats using y_ini?

- Thanks in advance!
Reply


Messages In This Thread
Need help with y_ini. - by MikkelPetersen - 08.02.2011, 17:34
Re: Need help with y_ini. - by [L3th4l] - 08.02.2011, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)