Bug /stats id?
#10

No, no, no, NO!

You have 3 formats.

Quote:

format(string, sizeof(string),"{80FF00}|=======( {FFFFFF}Player: {00FF80}%s [Id:%d]{80FF00} )========|",GetName(playerid),playerid);
/************************************************** ************************************************** *****************************/
format(string, sizeof(string),"NickName %s [Id:%d]\n Your IP [%s]\n Admin [%i]\n Level [%i]\nVip [%i]\nMoney [$%i]\nScore [%i]\nSkin [%i]\nKills [%i]\nDeaths [%i]",GetName(playerid),,IP ,PlayerInfo[playerid][pAdmin],PlayerInfo[playerid][pLevel],PlayerInfo[playerid][pVip],GetPlayerMoney(playerid)GetPlayerMoney(playerid), GetPlayerScore(playerid), GetPlayerSkin(playerid),PlayerInfo[playerid][pKills],PlayerInfo[playerid][pDeaths],playerid);

/************************************************** ************************************************** *****************************/
format(string, sizeof(string),"{80FF00}|=====================|");

ONE, sir.

Otherwise:
pawn Код:
#include <sscanf2>

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

    new string[500], temp[128], IP[16];
    GetPlayerIp(lookupid, IP, 16);

    format(temp, sizeof(temp),"{80FF00}|=======( {FFFFFF}Player: {00FF80}%s [Id:%d]{80FF00} )========|\n",GetName(lookupid),lookupid);
    strcat(string, temp);
    /************************************************** ************************************************** *****************************/
    format(temp, sizeof(temp),"NickName %s [Id:%d]\n",GetName(lookupid),lookupid);
    strcat(string, temp);
    format(temp, sizeof(temp),"Your IP [%s]\n",IP);
    strcat(string, temp);
    format(temp, sizeof(temp),"Admin [%i]\n",PlayerInfo[lookupid][pAdmin]);
    strcat(string, temp);
    format(temp, sizeof(temp),"Level [%i]\n",PlayerInfo[lookupid][pLevel]);
    strcat(string, temp);
    format(temp, sizeof(temp),"Vip [%i]\n", PlayerInfo[lookupid][pVip]);
    strcat(string, temp);
    format(temp, sizeof(temp),"Money [$%i]\n",GetPlayerMoney(lookupid));
    strcat(string, temp);
    format(temp, sizeof(temp),"Score [%i]\n", GetPlayerScore(lookupid));
    strcat(string, temp);
    format(temp, sizeof(temp),"Skin [%i]\n", GetPlayerSkin(lookupid));
    strcat(string, temp);
    format(temp, sizeof(temp),"Kills [%i]\n", PlayerInfo[lookupid][pKills]);
    strcat(string, temp);
    format(temp, sizeof(temp),"Deaths [%i]\n",PlayerInfo[lookupid][pDeaths]);
    strcat(string, temp);
    /************************************************** ************************************************** *****************************/
    format(temp, sizeof(temp),"{80FF00}|=====================|");
    strcat(string, temp);
    ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYL E_MSGBOX, "Stats", string, "Ok", "");
    return 1;
}
And 10,000 cells... Oh my. Use 500 at least.
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: 2 Guest(s)