Dialog shows only half results
#1

Hi,
So, I made an application moderating system in-game for administrators to check roleplay applications. The code to get all unchecked applications is:
pawn Код:
new temp[128], count, pid, id,totalString[512];
    for(new r=0; r < cache_get_row_count(); ++r)
    {
        cache_get_field_content(r, "id", temp), id = strval(temp);
        cache_get_field_content(r, "playerid", temp), pid = strval(temp);
        format(totalString, 2400, "%s\n(APP ID: %d) Applicant ID: %d %s", totalString, id, pid, get_name_from_sqlid(pid));
        appList[playerid][count] = id;
        count++;
    }
    if(!count) return SCM(playerid, COLOR_RED, "No applications.");
    ShowPlayerDialog(playerid, DIALOG_APPCHECK, DIALOG_STYLE_LIST, "Applications Moderating", totalString, "Check", "Close");
The problem is whenever I do that and sometimes there is more than one application - it only shows half of the applications. Lets say there are 10 applications unchecked, it shows less than half, and I need to do the command again and only then the dialog will show me all the unchecked applications. What's wrong?
Reply


Messages In This Thread
Dialog shows only half results - by 963852741 - 20.01.2017, 17:52
Re: Dialog shows only half results - by Amads - 20.01.2017, 17:57
Re: Dialog shows only half results - by 963852741 - 20.01.2017, 18:21
Re: Dialog shows only half results - by Yaa - 20.01.2017, 18:30
Re: Dialog shows only half results - by iLearner - 20.01.2017, 18:45
Re: Dialog shows only half results - by oMa37 - 20.01.2017, 18:49
Re: Dialog shows only half results - by Vince - 20.01.2017, 19:30
Re: Dialog shows only half results - by Yaa - 20.01.2017, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)