[Help]y_ini saving case sensitive
#8

This one is more faster and optimized:
PHP код:
UsernameToLower(const playername[MAX_PLAYER_NAME])
{
    new 
ln[MAX_PLAYER_NAME];
    for(new 
ii<strlen(playername); i++)
    {
        if(
playername[i] == '_') continue;
        if(
'A' playername[i] || playername[i] > 'Z') return playername;

        
ln[i] = tolower(playername[i]);
    }
    return 
ln;

By the way @AndySedeyn still giving a great help.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)