public int registerAccount(string strAccountName, string strPassword, int intIsJudge) { int intResult = -1; if (intIsJudge == 1) { mysql my = new mysql(); intResult = my.insertIntoJudge(strAccountName, md5(strPassword)); if (intResult == 0) { return 0; } else if (intResult == 1) { return 1; } else { return -1; } } return -1; }