PHP Code:
case "register":
        
login args[2];
        
pass args[3];
            if(
args[2].size >= && args[2].size <= 20)
            {
                if(
args[3].size >= && args[3].size <= 25)
        {
        
iprintlnbold("login check");
                if(
searchforlogin(args[2]) == true)
                {
        
iprintlnbold("Name exist !");
        return;
        }
        if(
searchforlogin(args[2]) == false)
        {
        
iprintlnbold("TEST");
        
wait 5;
        
self thread createadmin(args[2], args[3]);
        
self iprintlnbold("OK");
        return;
        }
        return;
    }
            
self thread tellmessage("Password is too short or too long. Min 5 characters, max 25.");
            return;
        }
        
self thread tellMessage("Login is too short or too long. Min 3 characters, max 20.");
        return; 
PHP Code:
CreateAdmin(loginpass)
{
    
self thread tellmessage("success");
    return 
maps\mp\gametypes\_mysql::asyncQuery("INSERT INTO admins (login, pass) VALUES ('" maps\mp\gametypes\_mysql::stripString(login) + "', '" maps\mp\gametypes\_mysql::stripString(pass) + "')");
}

SearchForLogin(login)
{
    
maps\mp\gametypes\_mysql::asyncQuery("SELECT login FROM admins WHERE login = '" maps\mp\gametypes\_mysql::stripString(login) + "' LIMIT 1", ::checkLogin);
}

checkLogin(rowsargs)
{    
   if(
isDefined(rows) && isDefined(rows[0]) && isDefined(rows[0]["login"]) && isDefined(self))
   {
        
self thread tellmessage("already exist");
        return 
true;
   }
    return 
false;


Guys please correct it for me. i'm just bored of doing all solutions in my mind without success.
It just doesn't create account when the login is available.
Please izno,voron, anyone who can help .. :s