Bug /stats id?
#4

pawn Код:
#include <sscanf2>

CMD:stats(playerid, params[])
{
    new lookupid;
    if(sscanf(params, "u", lookupid)) return SendClientMessage(playerid, -1, "Usage: /stats (id/name).");

    new string[10000], IP[16];
    GetPlayerIp(lookupid, IP, 16);

    format(string, sizeof(string),"{80FF00}|=======( {FFFFFF}Player: {00FF80}%s [Id:%d]{80FF00} )========|",GetName(lookupid),lookupid);
    /************************************************** ************************************************** *****************************/
    format(string, sizeof(string),"NickName %s [Id:%d]",GetName(lookupid),lookupid);
    format(string, sizeof(string),"Your IP [%s]",IP);
    format(string, sizeof(string),"Admin [%i]",PlayerInfo[lookupid][pAdmin]);
    format(string, sizeof(string),"Level [%i]",PlayerInfo[lookupid][pLevel]);
    format(string, sizeof(string),"Vip [%i]", PlayerInfo[lookupid][pVip]);
    format(string, sizeof(string),"Money [$%i]",GetPlayerMoney(lookupid));
    format(string, sizeof(string),"Score [%i]", GetPlayerScore(lookupid));
    format(string, sizeof(string),"Skin [%i]", GetPlayerSkin(lookupid));
    format(string, sizeof(string),"Kills [%i]", PlayerInfo[lookupid][pKills]);
    format(string, sizeof(string),"Deaths [%i]",PlayerInfo[lookupid][pDeaths]);
    /************************************************** ************************************************** *****************************/
    format(string, sizeof(string),"{80FF00}|=====================|");
    ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYL E_MSGBOX, "Stats", string, "Ok", "");
    return 1;
}
https://sampforum.blast.hk/showthread.php?tid=570927

Note: Put everything on one format, it won't work like that. But, yeah. I left that for you to do.
Reply


Messages In This Thread
Bug /stats id? - by Tween73 - 22.01.2016, 02:52
Re: Bug /stats id? - by Elegy - 22.01.2016, 02:57
Re: Bug /stats id? - by Elegy - 22.01.2016, 03:01
Re: Bug /stats id? - by SickAttack - 22.01.2016, 03:02
Re: Bug /stats id? - by Tween73 - 22.01.2016, 03:03
Re: Bug /stats id? - by SickAttack - 22.01.2016, 03:05
Re: Bug /stats id? - by Elegy - 22.01.2016, 03:07
Re: Bug /stats id? - by Elegy - 22.01.2016, 03:09
Re: Bug /stats id? - by Tween73 - 22.01.2016, 03:13
Re: Bug /stats id? - by SickAttack - 22.01.2016, 03:16

Forum Jump:


Users browsing this thread: 1 Guest(s)