13.03.2011, 16:08
So i want to learn y_ini, because i heard it's the fastest one. So i need a little help from you.
Any help?!
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);
}
}
}
}