dialog bugs../login
#1

this doesnt log me in-.- it gets my pass right and everything but i have to do /login pass after to actually log me in

pawn Код:
if(dialogid == 1) //Logging
    {
        if(!response)
        {
            SendClientMessage(playerid,COLOR_RED,"You Have To Login In Order To Play!");
            ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Please Type Your Password Below To Login","Login","Cancel");
        }
        if(response)
        {
            new ppw[256];
            ppw = dini_Get(pfile, "Password");
            if(strcmp(ppw, inputtext, true))
            {
                SendClientMessage(playerid,COLOR_RED,"Wrong Password");
                ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Please Type Your Password Below To Login","Login","Cancel");
            }
            else
            {
                IsLogged[playerid] = 1;
                LoadPlayer(playerid);
                SetTimerEx("TimePlayerLogged", 1000, true, "i", playerid);
                GameTextForPlayer(playerid,"~g~Logged In",2000,1);
            }
        }
        return 1;
    }
Reply


Messages In This Thread
dialog bugs../login - by Kar - 01.08.2010, 21:55
Re: dialog bugs../login - by Jefff - 01.08.2010, 22:03
Re: dialog bugs../login - by Kar - 01.08.2010, 22:15

Forum Jump:


Users browsing this thread: 1 Guest(s)