MySQL rows
#1

PHP код:
forward onPlayerListBans playerid ) ;
public 
onPlayerListBans playerid ) {
    new     
        
idx ,
        
data ] [ 32 ] , 
        
banned_id ,
        
g_szListBansBig 512 ] ,
        
g_szListBans 512 ] ,
        
rows ,
        
fields ;
    
cache_get_data rows fields ) ;
    for ( new 
rows != x++ ) {
        
cache_get_field_content "r_ban_id" data ] ) ;
        
banned_id strval data ] ) ;
        
cache_get_field_content "r_ban_name" data ] ) ;
        
cache_get_field_content "r_ban_ip" data ] ) ;
        
idx++;
        
format g_szListBans sizeof g_szListBans ""#C_WHITE"#%d) %s ( IP: \""#C_GREEN"%s"#C_WHITE"\" )\n" , banned_id , data [ 1 ] , data [ 2 ] ) ;
        
strcat g_szListBansBig g_szListBans ) ;
    } 
    if ( 
idx strcat g_szListBans ""#C_WHITE"Bans List empty!" ) ;
    
return ShowPlayerDialog playerid R_BAN_DIALOG_LIST ""#C_GREEN"Bans List" , g_szListBans , "SEARCH" , ">>>" ) ;

In the dialog shows only the last line. How do I fix it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)