Dialogs
#2

That's because you're forgetting that you need a bigger string to show all of the bugs info, and this is why it also doesn't show you the rest of the bugs as well. ('play' with the string until you can see all of the bug's info)
pawn Код:
CMD:bugs(playerid, params[])
{
    new bug2[600], bug1[32];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(!PlayerInfo[playerid][pAdmin] || PlayerInfo[playerid][pTester]) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
    for(new f=0; f<MAX_BREPORTS; f++)
    {
         format(bug1,sizeof(bug1), "Active Bug Reports:");
         format(bug2, sizeof(bug2), "{FF0000}(Bug %d){FFFFFF} Date:%02d/%02d/%d |Sender: %s| %s\r\n", f, BugReport[f][bMonth], BugReport[f][bDay], BugReport[f][bYear], BugReport[f][bSender], BugReport[f][bText]);
         ShowPlayerDialog(playerid, DIALOG_BUGS, DIALOG_STYLE_LIST, bug1, bug2, "Select", "Quit");
    }
    return 1;
}
Reply


Messages In This Thread
Dialogs - by Gecko75 - 16.11.2013, 02:22
Re: Dialogs - by Loot - 16.11.2013, 13:24

Forum Jump:


Users browsing this thread: 1 Guest(s)