Login Bug - Nickname
#1

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..
Reply
#2

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)
Reply
#3

y_ini.. what to do to make it case sensitive ?
Reply
#4

Insensitive.
Convert to lowercase, for example using strtolower
pawn Код:
stock strtolower(str[]) {
    for(new c = 0; str[c] != EOS; ++c) {
        str[c] = tolower(str[c]);
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)