Saving Accounts
#5

pawn Код:
public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Password",PlayerInfo[playerid][pPass]);
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    INI_Int("VIP",PlayerInfo[playerid][pVIP]);
    INI_Int("Wanted",PlayerInfo[playerid][pWanted]);
    INI_Int("Kills",PlayerInfo[playerid][pKills]);
    INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
    INI_Int("Jailed",PlayerInfo[playerid][pJailed]);
    INI_Int("Muted",PlayerInfo[playerid][pMuted]);
    INI_Int("Cash",PlayerInfo[playerid][pCash]);
    INI_Int("Score",PlayerInfo[playerid][pScore]);
    INI_Int("Banned",PlayerInfo[playerid][pBanned]);
    return 1;
}
pawn Код:
enum pInfo
{
    pPass,
    pAdmin,
    pVIP,
    pWanted,
    pKills,
    pDeaths,
    pJailed,
    pMuted,
    pCash,
    pScore,
    pBanned
}
new PlayerInfo[MAX_PLAYERS][pInfo];
pawn Код:
#define PATH "/AdminSystem/Account/%s.ini"
Код:
 forward LoadUser_data(playerid,name[],value[]);
pawn Код:
stock UserPath(playerid)
{
    new string[1000],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),PATH,playername);
    return string;
}
This is pretty much everything that has anything to do with the admin system account save.. It used to save, I believe. I won't say for sure that it did, though.
Reply


Messages In This Thread
Saving Accounts - by Kudoz - 24.12.2014, 13:49
Re: Saving Accounts - by UltraScripter - 24.12.2014, 13:51
Re: Saving Accounts - by Kudoz - 24.12.2014, 14:13
Re: Saving Accounts - by UltraScripter - 24.12.2014, 14:21
Re: Saving Accounts - by Kudoz - 24.12.2014, 14:36
Re: Saving Accounts - by UltraScripter - 24.12.2014, 14:46
Re: Saving Accounts - by Arxalan - 24.12.2014, 14:54
Re: Saving Accounts - by bobsona - 24.12.2014, 16:21
Re: Saving Accounts - by Kudoz - 24.12.2014, 16:35
Re: Saving Accounts - by Kudoz - 02.01.2015, 02:08

Forum Jump:


Users browsing this thread: 2 Guest(s)