loading bools using Y_INI
#1

Hello every one.
i had saved player's bool, and i wanna load it.
i got no idea how to. i already search, but i cant find my point..
so here i am saving the bool.
pawn Код:
enum options
{
bool:Togglepm
//other var
};
new pOption[MAX_PLAYERS][options];
pawn Код:
stock SaveStats(playerid)
    {
        if(IsPlayerConnected(playerid))
        {
        new INI:File = INI_Open(UserPath(playerid));
        INI_SetTag(File,"data");
        INI_WriteBool(File,"Togglepm",pOption[playerid][Togglepm]);
             INI_Close(File);
        }
    }
and i wanna load it.
so what shall i do ?
Reply


Messages In This Thread
loading bools using Y_INI - by [D]ry[D]esert - 12.12.2012, 08:14

Forum Jump:


Users browsing this thread: 1 Guest(s)