[Ajuda] Problema ao carregar facзхes MySql
#5

Quote:
Originally Posted by 1sbedx
Посмотреть сообщение
PHP код:
        result mysql_query(Connect"SELECT * FROM `factions`");  
        if(
cache_get_row_count(rows))  
        { 
Tem certeza de que vai colocar isso dentro de um loop?
Quote:
Originally Posted by JhonnyMonroe
Посмотреть сообщение
Muito obrigado Cleyson! Ajudou muito. +Rep
Desculpe pelo meu erro, passou despercebido.

PHP код:
LoadFactions()  
{  
    new 
rowsCache:resultquery[60];
    for(new 
0MAX_FACTIONSi++) 
    {
        
mysql_format(Connectquerysizeof(query), "SELECT * FROM `factions` WHERE `fID` = %d"i); 
        
result mysql_query(Connectquery);
        if(
cache_get_row_count(rows))  
        {  
            
cache_get_value_int(0"fID"Factions[i][fID]);  
            
cache_get_value_int(0"fLeaderID"Factions[i][fLeaderID]);  
            
cache_get_value_name(0"fLeaderName"Factions[i][fLeaderName]);  
            
cache_get_value_name(0"fNome"Factions[i][fNome]);  
            
cache_get_value_name(0"fTag",Factions[i][fTag]);  
            
cache_get_value_name(0"Cargo1Faction"Factions[i][Cargo1Faction]);  
            
cache_get_value_name(0"Cargo2Faction"Factions[i][Cargo2Faction]);  
            
cache_get_value_name(0"Cargo3Faction",Factions[i][Cargo3Faction]);  
            
cache_get_value_name(0"Cargo4Faction",Factions[i][Cargo4Faction]);  
            
cache_get_value_name(0"Cargo5Faction",Factions[i][Cargo5Faction]);  
            
cache_get_value_int(0"fKScore"Factions[i][fKScore]);  
            
cache_get_value_int(0"fDScore"Factions[i][fDScore]);  
            
cache_get_value_int(0"fCarteira"Factions[i][fCarteira]);
        }   
    }  
    
printf("[Faction] - %i Facзхes foram carregadas!"rows);  
    
Total_Factions_Created rows;  
    
cache_delete(result);  
    return 
1;  

Reply


Messages In This Thread
Problema ao carregar facзхes MySql - by JhonnyMonroe - 31.05.2018, 23:06
Re: Problema ao carregar facзхes MySql - by Cleyson - 01.06.2018, 00:00
Re: Problema ao carregar facзхes MySql - by 1sbedx - 01.06.2018, 00:14
Re: Problema ao carregar facзхes MySql - by JhonnyMonroe - 01.06.2018, 00:26
Re: Problema ao carregar facзхes MySql - by Cleyson - 01.06.2018, 01:11

Forum Jump:


Users browsing this thread: 1 Guest(s)