01.08.2010, 21:55
this doesnt log me in-.- it gets my pass right and everything but i have to do /login pass after to actually log me in
pawn Код:
if(dialogid == 1) //Logging
{
if(!response)
{
SendClientMessage(playerid,COLOR_RED,"You Have To Login In Order To Play!");
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Please Type Your Password Below To Login","Login","Cancel");
}
if(response)
{
new ppw[256];
ppw = dini_Get(pfile, "Password");
if(strcmp(ppw, inputtext, true))
{
SendClientMessage(playerid,COLOR_RED,"Wrong Password");
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Please Type Your Password Below To Login","Login","Cancel");
}
else
{
IsLogged[playerid] = 1;
LoadPlayer(playerid);
SetTimerEx("TimePlayerLogged", 1000, true, "i", playerid);
GameTextForPlayer(playerid,"~g~Logged In",2000,1);
}
}
return 1;
}