Login bug again :|
#10

pawn Код:
if(dialogid == 667)
{
    if(response)
    {
        if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
        {
            INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
            gPlayerLogged[playerid] = 1;
            GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
            SCM(playerid, COLOR_RED, "You have logged in. You may now spawn.");
        }
        else
        {
            gPlayer[playerid] += 1;

            if(gPlayer[playerid] == 1)
            {
                SCM(playerid, COLOR_RED, "Wrong Password. 1/3");
            }else if(gPlayer[playerid] == 2)
            {
                SCM(playerid ,COLOR_RED, "Wrong Password. 2/3");
            }else  if(gPlayer[playerid] == 3){
                SCM(playerid, COLOR_RED, "Wrong Password. 3/3. You have been kicked.");
                Kick(playerid);
            }
        }
    }
}
Just needed to sort out the warnings becouse if there is an else a the end when the "if" statements are seperate that will kick the player if his warning is "=0" too becouse is checking for 1,2 at the same time and when I checks for 2 and is not 2 then it will kick him
Reply


Messages In This Thread
Login bug again :| - by Vrondakis - 17.03.2012, 20:33
Re: Login bug again :| - by Vrondakis - 17.03.2012, 23:03
Re: Login bug again :| - by new121 - 17.03.2012, 23:05
Re: Login bug again :| - by park4bmx - 17.03.2012, 23:08
Re: Login bug again :| - by Cpt.Shady - 17.03.2012, 23:38
Re: Login bug again :| - by Vrondakis - 18.03.2012, 00:46
Re: Login bug again :| - by ReneG - 18.03.2012, 01:01
Re: Login bug again :| - by Vrondakis - 18.03.2012, 01:14
Re: Login bug again :| - by Alvord - 18.03.2012, 04:13
Re: Login bug again :| - by park4bmx - 18.03.2012, 10:17

Forum Jump:


Users browsing this thread: 4 Guest(s)