SA-MP Forums Archive
Need help with y_ini. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with y_ini. (/showthread.php?tid=223021)



Need help with y_ini. - MikkelPetersen - 08.02.2011

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!


Re: Need help with y_ini. - [L3th4l] - 08.02.2011

There is a topic with 100+ replies about y_ini, go through it! Or check out some of the scripts around the forums. They might help. GL