21.06.2011, 13:24
no error + no work
in game no metter if i putt correct password or uncorrect its give me kick
in game no metter if i putt correct password or uncorrect its give me kick
PHP код:
if(dialogid == logind)
{
if(!response)
{
ShowPlayerDialog(playerid, logind, DIALOG_STYLE_INPUT, "Login", "You Muyst Enter Password To Login \nPlease Enter Pass", "Login", "Leave");
return 1;
}
if(strlen(inputtext) > 15 || strlen(inputtext) < 5)
{
SCM(playerid, COLOR_RED, "ERROR: Lenght Must Be 5-25");
ShowPlayerDialog(playerid, logind, DIALOG_STYLE_INPUT, "Login", "You Muyst Enter Password To Login \nPlease Enter Pass", "Login", "Leave");
return 1;
}
new tmp;
tmp = dini_Int(file, "Password");
if(strcmp(inputtext) != tmp)
{
SCM(playerid, COLOR_RED, "ERROR: Wrong Password!! bye");
Kick(playerid);
logged[playerid] = 0;
}
else
{
logged[playerid] = 1;
SCM(playerid, COLOR_YELLOW, " You Seccessfull logged");
return 1;
}
}