Please help
#6

This is what I did. It returns a warning though....


warning 225: unreachable code On line:
pawn Код:
if(loginchances[playerid] <= 3)
pawn Код:
if(dialogid == REGDIAG) //Login
    {
        if(!response) return Kick(playerid);
        {
            if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid, "You are already logged in");
            if (!udb_Exists(PlayerName(playerid))) return ShowPlayerDialog(playerid, REGDIAG+1, DIALOG_STYLE_INPUT, "ACCOUNT", "This name is not registered!\nPlease enter a password below", "Register", "Exit");
            if (!strlen(inputtext)) return ShowPlayerDialog(playerid, REGDIAG, DIALOG_STYLE_INPUT, "ACCOUNT", "ERROR: You must enter your password!\n\nThis name is registered!\nPlease enter your password below!", "Login", "Exit");

            if(udb_CheckLogin(PlayerName(playerid),inputtext))
            {

                GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid));
                SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("score")-GetPlayerScore(playerid));
                robberrank[playerid] =dUserINT(PlayerName(playerid)).("robrank");
                raperank[playerid] =dUserINT(PlayerName(playerid)).("raperank");
                tazerank[playerid] =dUserINT(PlayerName(playerid)).("tazerank");
                hitrank[playerid] =dUserINT(PlayerName(playerid)).("hitrank");
                arrestrank[playerid] =dUserINT(PlayerName(playerid)).("arrestrank");
                teamkiller[playerid] =dUserINT(PlayerName(playerid)).("teamkills");
                innocentkiller[playerid] =dUserINT(PlayerName(playerid)).("innocentkills");
                lowwantedkiller[playerid] =dUserINT(PlayerName(playerid)).("lowwantedkills");
                BankRobInsurance[playerid] =dUserINT(PlayerName(playerid)).("cashinsured");
                CanUseArmy[playerid] =dUserINT(PlayerName(playerid)).("canusearmy");
                donator[playerid] =dUserINT(PlayerName(playerid)).("donator");
                PlayerAdminLevel[playerid] =dUserINT(PlayerName(playerid)).("adminlevel");
                RegularPlayer[playerid] =dUserINT(PlayerName(playerid)).("RegularPlayer");
                JailTime[playerid] = dUserINT(PlayerName(playerid)).("jailtime");
                PLAYERLIST_authed[playerid] = true;
                return SystemMsg(playerid,"You are now logged in. Your stats will be auto-saved when you disconnect");
                }
                return ShowPlayerDialog(playerid, REGDIAG, DIALOG_STYLE_INPUT, "ACCOUNT", "ERROR: Invalid Password!\n\nPlease Try Again!\nEnter your password below!", "Login", "Exit");
                if(loginchances[playerid] <= 3) {
                loginchances[playerid] ++;
                }
                else
                if(loginchances[playerid] >= 4) {
                new str[100];
                GetPlayerName(playerid, str, 24);
                format(str, 100, "**(AUTO KICK)** %s(%d) Failed to login - Registered Playername", str,playerid);
                SendClientMessageToAll(0xFF7F50AA, str);
                printf("%s", str);
                SetPlayerInterior(playerid,10);
                SetPlayerPos(playerid,219.6257,111.2549,999.0156);
                SetPlayerFacingAngle(playerid,2.2339);
                SetCameraBehindPlayer(playerid);
                ResetPlayerMoney(playerid);
                ResetPlayerWeapons(playerid);
                Kicking[playerid] =1;
                SetTimer("KickPlayer",700,0);
              }
            }
        }
Reply


Messages In This Thread
Fixed - by MWF2 - 14.07.2010, 04:01
Re: Please help - by Carlton - 14.07.2010, 04:09
Re: Please help - by MWF2 - 14.07.2010, 13:25
Re: Please help - by MWF2 - 14.07.2010, 13:48
Re: Please help - by ViruZZzZ_ChiLLL - 14.07.2010, 13:53
Re: Please help - by MWF2 - 14.07.2010, 13:59
Re: Please help - by MWF2 - 14.07.2010, 14:04

Forum Jump:


Users browsing this thread: 2 Guest(s)