View Full Version : Login Bug - Nickname

21/07/2013, 09:55 AM
Hello i have a login system i which player having same nick but different format can join i mean

if a player : Anak (is registered)
and a player : ANAK can register also.. i want to make that Anak and ANAK will be a same account .. difficult to tell..

21/07/2013, 10:01 AM
Login system using mysql, sqlite, or y_ini? For SQL based storage use _ci (case-insensitive) collation for nick field. For other systems do it pawn-side with some unification of case (strtolower or something)

21/07/2013, 11:53 AM
y_ini.. what to do to make it case sensitive ?

21/07/2013, 11:58 AM
Convert to lowercase, for example using strtolower
stock strtolower(str[]) {
for(new c = 0; str[c] != EOS; ++c) {
str[c] = tolower(str[c]);