[DUDA] їContar archivos con Y_INI? Otro?
#4

Creo que no hay forma desde PAWN, habria que realizar algun peque;o plugin. Existe forma si los archivos llevan un orden numerico facil de contar
PHP код:
stock countFiles(dir[] = '\0'type[] = "ini"get 0

    new 
idxstr[MAX_FILE_NAME], clast gettime()+2n
    if(
dir[0] != '\0'
    { 
        if(
fexist(dir)) 
        { 
            for( ; ; ) 
            { 
                if(
last gettime()) 
                    break; 
                
format(strsizeof(str), "%s/%d.%s"diridxtype); 
                if(
fexist(str)){ 
                    
c++; 
                    
last gettime()+2
                    
idx
                } 
                ++
idx
            } 
        } 
    } 
    return ((
get == 0) ? (c) : (n)); 

PHP код:
    total countFiles("/vehiculos/""ini"0); 
Reply


Messages In This Thread
[DUDA] їContar archivos con Y_INI? Otro? - by yesidpte - 25.11.2016, 21:13
Re: [DUDA] їContar archivos con Y_INI? Otro? - by yesidpte - 26.11.2016, 19:40
Respuesta: [DUDA] їContar archivos con Y_INI? Otro? - by Z0MBERTH - 26.11.2016, 20:12
Respuesta: [DUDA] їContar archivos con Y_INI? Otro? - by Zume - 26.11.2016, 21:09

Forum Jump:


Users browsing this thread: 1 Guest(s)