08.02.2011, 17:34
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:
Can someone please explain, a little more in depth, how you read strings, integers and floats using y_ini?
- Thanks in advance!
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]);
- Thanks in advance!