Score/money doesn't save
#5

Try this saving code:

pawn Код:
if(pInfo[playerid][Logged] == 1)
    {
        new file[64];
        new playername3[MAX_PLAYER_NAME];
        GetPlayerName(playerid, playername3, sizeof(playername3));
        format(file, sizeof(file), "/Users/%s.ini", playername3);
        dini_IntSet(file, "Admin",pInfo[playerid][Admin]);
        dini_IntSet(file, "Cash",GetPlayerMoney(playerid));
        dini_IntSet(file, "Vip",pInfo[playerid][Vip]);
        dini_IntSet(file, "Scores",GetPlayerScore(playerid));
        dini_IntSet(file, "Deaths",pInfo[playerid][Deaths]);
        dini_IntSet(file, "Nopm",pInfo[playerid][Nopm]);
        dini_IntSet(file, "Muted",pInfo[playerid][Muted]);
        dini_IntSet(file, "Vip",pInfo[playerid][Vip]);
        dini_IntSet(file, "Banned",pInfo[playerid][Banned]);
        dini_IntSet(file, "Cookies",pInfo[playerid][Cookies]);
        dini_IntSet(file, "Warn",pInfo[playerid][Warn]);
        dini_IntSet(file, "Jailed",pInfo[playerid][Jailed]);
        dini_IntSet(file, "Logged",pInfo[playerid][Logged]);
        dini_IntSet(file, "AdminActions",pInfo[playerid][AdminActions]);
        dini_IntSet(file, "Rank",pInfo[playerid][Rank]);
        dini_IntSet(file, "TempBan",pInfo[playerid][TempBan]);
        return 1;
    }
Reply


Messages In This Thread
Score/money doesn't save - by Face9000 - 28.04.2013, 10:06
Re: Score/money doesn't save - by Ballu Miaa - 28.04.2013, 10:16
Re: Score/money doesn't save - by Face9000 - 28.04.2013, 10:52
Re: Score/money doesn't save - by Face9000 - 28.04.2013, 19:01
Re: Score/money doesn't save - by Emmet_ - 28.04.2013, 19:04
Re: Score/money doesn't save - by Apenmeeuw - 28.04.2013, 19:05
Re: Score/money doesn't save - by Face9000 - 28.04.2013, 19:21
Re: Score/money doesn't save - by DanLore - 28.04.2013, 19:41
Re: Score/money doesn't save - by Face9000 - 28.04.2013, 20:57

Forum Jump:


Users browsing this thread: 1 Guest(s)