Viewing past reports.
#4

Quote:
Originally Posted by Kyance
Посмотреть сообщение
pawn Код:
CMD:pending(playerid,params[])
{
    if(!Logged[playerid]) return 0;
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
        new string[256]; //decreased the size for now
        foreach(new i : Player)
        {
            if(PlayerInfo[i][Pending] == 1)
            {
                format(string,sizeof(string),"%sPending Report - %s(%i)\n",string, sendername(i),i);
            }
        }
        ShowPlayerDialog(playerid,DIALOG_PENDING,DIALOG_STYLE_MSGBOX,"Pending Assistance/Reports",string,"Close","");
    }
    return 1;
}
You weren't "re-formatting" the string, you basically just 'overwrote' it, thus it didn't show all the reported players.
Thanks!
Reply


Messages In This Thread
Viewing past reports. - by DaniceMcHarley - 05.12.2014, 07:25
Re: Viewing past reports. - by xCrazyMonkey - 05.12.2014, 07:46
Re: Viewing past reports. - by Kyance - 05.12.2014, 15:38
Re: Viewing past reports. - by DaniceMcHarley - 05.12.2014, 18:40

Forum Jump:


Users browsing this thread: 1 Guest(s)