03.08.2016, 10:59
This one is more faster and optimized:
By the way @AndySedeyn still giving a great help.
PHP код:
UsernameToLower(const playername[MAX_PLAYER_NAME])
{
new ln[MAX_PLAYER_NAME];
for(new i; i<strlen(playername); i++)
{
if(playername[i] == '_') continue;
if('A' > playername[i] || playername[i] > 'Z') return playername;
ln[i] = tolower(playername[i]);
}
return ln;
}