Fix your indentation.
You'll see this:
the if(haslogin == false) is inside the if(haslogin == true)PHP Code:case "register":
if(args[2].size >= 3 && args[2].size <= 20)
{
haslogin = searchforlogin(args[2]);
if(haslogin == true)
{
if(args[3].size >= 5 && args[3].size <= 25)
{
return;
}
if(haslogin == false)
{
iprintlnbold("ye");
createadmin(args[2], args[3]);
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;



Reply With Quote