13.05.2012, 14:32
(
Последний раз редактировалось pasha97; 13.05.2012 в 17:25.
)
Hi! here is new problem: login! Login always goes successfully, even if password is wrong, see please what's wrong:
Thanks
PHP код:
if(dialogid == DIALID+1)
{
if(response)
{
if(dini_Exists(ustring))
{
GetPlayerName(playerid, name, sizeof(name));
format(ustring, sizeof(ustring), "UltraPadmin/Users/%s.txt", name);
new password[256];
password = dini_Get(ustring,"PLAYERPASSWORD");
if(strcmp(password,inputtext,false,strlen(password)) == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, "{00ff00}You successfully logged in!");
}
else
{
ShowPlayerDialog(playerid, DIALID+1, DIALOG_STYLE_PASSWORD, "Login", "This account is registered! Please type your password here or you will be kicked!", "Login", "Kick me");
}
}
if(!dini_Exists(ustring))
{
SendClientMessage(playerid, 0xFFFFFFFF, "{ff0000}You are not registered!");
}
}
else
{
Kick(playerid);
}
}
}