[Pedido] "Case-sensitive" para SQLite/PAWN
#3

PHP Code:
//autor: AndySedeyn
FixUsername(name[]) {  

    new  
        
tmp[MAX_PLAYER_NAME];  

    for(new 
0strlen(name); <= ji++) {  

        
tmp[i] = name[i];  

        if(
== && (name[i] <= 'A' || name[i] >= 'Z')) {  
            
tmp[i] = toupper(name[i]);  
        }  
        else if(
name[i-1] == '_' && (name[i] <= 'A' || name[i] >= 'Z')) {  
            
tmp[i] = toupper(name[i]);  
        }  
        else if(
name[i-1] != '_' && (name[i] >= 'A' || name[i] <= 'Z'))  {  
            
tmp[i] = tolower(name[i]);  
        }  
    }  
    return 
tmp;  

Dois minutos de busca https://sampforum.blast.hk/showthread.php?tid=613977&page=2
Reply


Messages In This Thread
"Case-sensitive" para SQLite/PAWN - by pWesley - 08.01.2018, 17:05
Re: "Case-sensitive" para SQLite/PAWN - by F1N4L - 08.01.2018, 17:07
Re: "Case-sensitive" para SQLite/PAWN - by Bruno13 - 08.01.2018, 21:51
Re: "Case-sensitive" para SQLite/PAWN - by SpikeCompiler - 08.01.2018, 22:02

Forum Jump:


Users browsing this thread: 1 Guest(s)