28.03.2013, 16:26
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
and i also have a file which stores players data
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,
}
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);