18.06.2012, 05:34
Hi,
There Are Problem With Login When I Made It Work In Dialog
When I Login It Say Wrong Password And The Password That I Wrote Is Correct!
rep+ For Who Will Fix This Problem
There Are Problem With Login When I Made It Work In Dialog
When I Login It Say Wrong Password And The Password That I Wrote Is Correct!
pawn Код:
if(dialogid == 100 && response == 1) {
{
new file[256];
new pass[256];
pass = dini_Get(file,"Password");
if(!response) return Kick(playerid);
if( response )
{
if(strcmp(inputtext,pass,false) != 0)
{
dini_IntSet(file,"Logged",1);
PInfo[playerid][Logged] = 1;
PInfo[playerid][Level] = dini_Int(file,"Level");
PInfo[playerid][Money] = dini_Int(file, "Money");
PInfo[playerid][Score] = dini_Int(file, "Score");
SetPlayerScore(playerid,dini_Int(file,"Score"));
GivePlayerMoney(playerid,dini_Int(file,"Money"));
SendClientMessage(playerid,GREEN,"You Have Successfully Logged In!");
}
else
{
ShowPlayerDialog(playerid, 100, DIALOG_STYLE_PASSWORD,"Login","{FF0000}Wrong Password, If Not Your Account Use Another Name","Login","Quit");
}
return 1;
}
}
}