/stats command
#8

Make a new var like:

pawn Code:
new variable;
Then,
pawn Code:
variable = dini_Get(formattedfilehere,"Level");
EDIT: Oh, erm.

pawn Code:
CMD:stats(playerid, params[])
{
    new file[36], Level, name[24], string[42];
    GetPlayerName(playerid, name, 24);
    format(file, sizeof file, "/Users/%s.ini",name);
    Level = dini_Get(file, "Level");
    format(string, sizeof string, "[%s] Admin Level: %d",name,level);
    SendClientMessage(playerid, blue, string);
    return 1;
}
Reply


Messages In This Thread
/stats command - by vent - 11.08.2011, 00:02
Re: /stats command - by Kingunit - 11.08.2011, 00:03
Re: /stats command - by vent - 11.08.2011, 00:14
Re: /stats command - by Kingunit - 11.08.2011, 00:19
Re: /stats command - by vent - 11.08.2011, 00:23
Re: /stats command - by Snipa - 11.08.2011, 00:28
Re: /stats command - by vent - 11.08.2011, 00:29
Re: /stats command - by Snipa - 11.08.2011, 00:31
Re: /stats command - by vent - 11.08.2011, 00:35
Re: /stats command - by grand.Theft.Otto - 11.08.2011, 00:37
Re: /stats command - by vent - 11.08.2011, 07:02
Re: /stats command - by Grim_ - 11.08.2011, 08:16

Forum Jump:


Users browsing this thread: 1 Guest(s)