Making my admin system (Day 2)
#1

hello everyone i have made all the commands the the previous error is fixed now im in problem how can i make the /setlevel command

i have enumed

this all

pawn Код:
enum ServerData
{
    MaxAdminLevel, //it is in config file in a folder which is by default 5
};
new ServerInfo[ServerData];

enum pInfo {
    PLAYER_NAME[MAX_PLAYER_NAME],
    PLAYER_IP[16],
    PLAYER_REGGED,
    PLAYER_PASS,
    pcash,
    Jailed,
    LoggedIn,
    Level,
    Muted,
    Caps,
    CJailTime,
    Frozen,
    FreezeTime,
    Kills,
    Deaths,
    hours,
    mins,
    secs,
    TotalTime,
    ConnectTime,
    MuteWarnings,
    Warnings,
    Spawned,
    TimesSpawned,
    God,
    OnDuty,
    blip,
    blipS,
    pColour,
    SpecID,
    SpecType,
}
and i also have a file which stores players data

pawn Код:
#define PlayerFile "***/Users/%s.ini"
pawn Код:
dini_Create(file);
                dini_Set(file, "Name", name);
                dini_Set(file, "Ip", ip);
                dini_IntSet(file, "Registered", 1);
                format(strdate, sizeof(strdate), "%d/%d/%d",day,month,year);
                dini_Set(file, "Registered On:", strdate);
                dini_IntSet(file, "Password", num_hash(inputtext));
                dini_IntSet(file, "Level", 0);
                dini_IntSet(file, "Money", 50);
Reply


Messages In This Thread
Making my admin system (Day 2) - by CBCandyBoy - 28.03.2013, 16:26
Re: Making my admin system (Day 2) - by CBCandyBoy - 29.03.2013, 06:01
Re: Making my admin system (Day 2) - by Pottus - 29.03.2013, 06:17
Re: Making my admin system (Day 2) - by CBCandyBoy - 29.03.2013, 07:02
Re: Making my admin system (Day 2) - by Gangster-rocks - 29.03.2013, 09:15

Forum Jump:


Users browsing this thread: 1 Guest(s)