Thx for ur help.
Even when the user is available i get that Login taked !
This is my searchforlogin thread
PHP Code:
SearchForLogin(login)
{
maps\mp\gametypes\_mysql::asyncQuery("SELECT login FROM admins WHERE login = '" + maps\mp\gametypes\_mysql::stripString(login) + "' LIMIT 1", ::checkLogin);
}
checkLogin(rows, args)
{
if(isDefined(rows) && isDefined(rows[0]) && isDefined(rows[0]["login"]) && isDefined(self))
{
self tellMessage("I'm sorry, but login " + rows[0]["login"] + "^7 already exist. Choose another one.");
return;
}
}
This is my query for creating the account:
PHP Code:
CreateAdmin(login, pass)
{
maps\mp\gametypes\_mysql::asyncQuery("INSERT INTO admins (login, pass) VALUES ('" + maps\mp\gametypes\_mysql::stripString(login) + "', '" + maps\mp\gametypes\_mysql::stripString(pass) + "')");
self thread tellmessage("success");
}
Maybe a problem in searchforlogin ?