SA-MP Forums Archive
MySQLCheck Problem... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: MySQLCheck Problem... (/showthread.php?tid=139603)



MySQLCheck Problem... - billy4601 - 05.04.2010

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?