Understanding y_ini.
#1

So i want to learn y_ini, because i heard it's the fastest one. So i need a little help from you.
pawn Код:
if(dialogid == DIALOG_LOGIN)
    {
        if(!response) return Kick(playerid);
        if(response)
        {
            if(strlen(inputtext) == 0)
            {
                ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_LIST, "Login", "Write password below", "Login", "Kick");
            }
            if(fexist(accname))
            {
                INI_Load(accname);
                if(HOW TO CHECK IF "PASSWORD" FROM FILE IS SAME AS THE INPUTTEXT)
                {
                    SendClientMessage(playerid, COLOUR_INFO, "Here functions of login etc.");
                }
                else
                {
                    Kick(playerid);
                }
            }
        }
    }
    if(dialogid == DIALOG_REGISTER)
    {
        if(!response) return Kick(playerid);
        if(response)
        {
            if(strlen(inputtext) == 0)
            {
                ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_LIST, "Registering", "Write password below", "Register", "Kick");
            }
            if(!fexist(accname))
            {
                new INI:Player = INI_Open(accname);
                INI_WriteString(Player, "PASSWORD", inputtext);
                INI_Close(Player);
            }
        }
    }
}
Any help?!
Reply


Messages In This Thread
Understanding y_ini. - by sekol - 13.03.2011, 16:08
AW: Understanding y_ini. - by Nero_3D - 13.03.2011, 17:39
Re: Understanding y_ini. - by sekol - 14.03.2011, 06:36

Forum Jump:


Users browsing this thread: 1 Guest(s)