Incomplete list
#1

I have tops function by SqLite but put the first 100 list I only go up by 85 on average and will increase more than the rest arrays do not appear, did I get the limit?

An example:

PHP код:
new string[128], DBResult:qresultrows;
    
format(stringsizeof(string), "SELECT `Nick`,`Ks`,`Sex`,`Onf` FROM `USERS` ORDER BY (`Ks` * 1) DESC limit 100");
    
qresult db_query(ZLDBstring);
    
rows db_num_rows(qresult);
    if(
rows)
    {
    new 
final_string[32 sizeof(string)], MInfoNick[MAX_PLAYER_NAME], MInfoKillMOnOff;
    
strcat(final_string"#\tNickname\tKilling\tState\n");
    for(new 
0rows++)
    {
    
db_get_field_assoc(qresult"Nick"MInfoNicksizeof(MInfoNick));
    
MInfoKill db_get_field_assoc_int(qresult"Ks");
    
MOnOff db_get_field_assoc_int(qresult"Onf");
    new 
MsnTD[25];
    if(
MOnOff == 1MsnTD "Connected"; else MsnTD "Disconnected";
    
format(stringsizeof(string), ""COL_ROJO"%d°\t%s\t%d\t%s\n", (1), MInfoNickMInfoKillMsnTD);
    
strcat(final_stringstring);
    
db_next_row(qresult);
    }
    
ShowPlayerDialog(playerid,DIALOG_TOPSDIALOG_STYLE_TABLIST_HEADERS"-§- Top score (killing) -§-"final_string"Accept""Back");
    
PlayerPlaySound(playerid11390.00.00.0); 
Example: Increase string [128] to string [256] or string [32 * sizeof (string)] to final_string [40 * sizeof (string)] but still leaves the incomplete list does not increase no more, did I get the most or something I do wrong?
Reply
#2

Try adding another string. Had this problem to once and I added two or three more strings.
Reply
#3

How to add another string?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)