Loop problem
#1

so here is the code
PHP код:
mysql_format(DatabaseDB_Querysizeof(DB_Query),"INSERT INTO `RANKS` (`ID`) VALUES ('%d')",listitem+1);
                    
mysql_tquery(DatabaseDB_Query);
                    
                    
                    for(new 
iMAX_FACTIONS_DIVSi++)
                    {
                        for(new 
jMAX_FACTIONS_RANKj++)
                        {
                            
mysql_format(DatabaseDB_Querysizeof(DB_Query), "UPDATE `RANKS` SET `D%dR%d`='Undefined' WHERE `ID`='%d'"i+1,j,listitem+1);
                            
mysql_query(DatabaseDB_Query);
                            
/*format(key, sizeof(key),"Rank%d",j);
                            rank = GetRanksEnum(key);
                            format(iGroupRank[listitem+1][i][rank],128,"Undefined");*/
                        
}
                    }
                    
mysql_format(DatabaseDB_Querysizeof(DB_Query),"INSERT INTO `divisions` (`ID`) VALUES ('%d')",listitem+1);
                    
mysql_tquery(DatabaseDB_Query);
                    for(new 
xMAX_FACTIONS_DIVSx++)
                    {
                        
format(keysizeof(key),"DIV_%d",x+1);
                        
mysql_format(DatabaseDB_Querysizeof(DB_Query), "UPDATE `divisions` SET `%s`='Undefined' WHERE `ID`='%d'"key,listitem+1);
                        
mysql_query(DatabaseDB_Query);
                        
/*iGroupDivs[listitem+1][x] = "Undefined";*/
                    




So there's a problem with the loop I guess..
Reply


Messages In This Thread
Loop problem - by Nru - 16.06.2018, 07:16
Re: Loop problem - by Calisthenics - 16.06.2018, 08:20
Re: Loop problem - by Nru - 16.06.2018, 08:39
Re: Loop problem - by jlalt - 16.06.2018, 09:53
Re: Loop problem - by GaByM - 17.06.2018, 14:02

Forum Jump:


Users browsing this thread: 1 Guest(s)