MySQLCheck Problem...
#1

pawn Код:
if(fexist(string))
    {
        gPlayerAccount[playerid] = 1;
        /*SendClientMessage(playerid, COLOR_YELLOW2, "Immigration: You are a registered citizen of San Andreas.");
        SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Use /login <password> to log in to your game account.");*/

        //return 1;
    }
    else
    {
        gPlayerAccount[playerid] = 0;
        //SendClientMessage(playerid,COLOR_YELLOW2,"Immigration: Please supply the necessary immigration documents by typing /register <password>");
        //return 1;
    }
    MySQLCheckConnection();

    //Check if the account exists
    new sqlaccountstatus = MySQLCheckAccount(plname);
    if(sqlaccountstatus != 0)
    {
        // Check if the account is locked
        if (MySQLCheckAccountLocked(sqlaccountstatus) != 0)
        {
            SendClientMessage(playerid, COLOR_LIGHTRED, "This account has been locked and cannot be accessed. Please contact an admin.");
            Kick(playerid);
            return 0;
        }
        gPlayerAccount[playerid] = 1;
        PlayerInfo[playerid][pSQLID] = sqlaccountstatus;
    }
    else
    {
        gPlayerAccount[playerid] = 0;
    }
    return 1;
}
I compile this code. I get a warning.
Код:
warning 225: unreachable code
How ti fix it warning 225?

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)