dini saving.
#6

I made one by my self but I am not at my home, so I can't test it:
But, just looking, it's alright?

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    if(Logged[playerid] == 1)
    {
        new file[128];
        new plName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, plName, sizeof(plName));
        format(file, sizeof(file), "\\Users\\%s.ini", plName);

        if(dini_Exists(file))
        {
            dini_IntSet(file, "Score", GetPlayerScore(playerid));
        dini_IntSet(file, "Money", GetPlayerMoney(playerid));
        dini_IntSet(file, "pJob", PlayerInfo[playerid][pJob]);
            return 1;
        }
    }
    return 1;
}
Reply


Messages In This Thread
dini saving. - by Koppa, - 04.06.2009, 18:37
Re: dini saving. - by Correlli - 04.06.2009, 19:00
Re: dini saving. - by Hot - 04.06.2009, 19:43
Re: dini saving. - by Koppa, - 04.06.2009, 20:58
Re: dini saving. - by Correlli - 04.06.2009, 22:05
Re: dini saving. - by Koppa, - 04.06.2009, 22:19
Re: dini saving. - by Correlli - 04.06.2009, 22:22
Re: dini saving. - by Koppa, - 04.06.2009, 22:26
Re: dini saving. - by Correlli - 04.06.2009, 22:40
Re: dini saving. - by Koppa, - 04.06.2009, 22:59

Forum Jump:


Users browsing this thread: 2 Guest(s)