12.12.2012, 08:14
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.
and i wanna load it.
so what shall i do ?
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);
}
}
so what shall i do ?