26.09.2010, 22:06
This should fix your problem, tell me if it works or not...
pawn Код:
public bla bla bla
if(dialogid == 104)
{
if(!response)
{
SendClientMessage(playerid, COLOR_RED, "You selected exit, therefore you were kicked.");
Kick(playerid);
}
if(!strcmp(inputtext, password1)) //checking if it is the players password
{
IsLogged[playerid] = 1;
TogglePlayerControllable(playerid, 1);
}
else //incorrect password
{
ShowPlayerDialog(playerid, 104, DIALOG_STYLE_INPUT, "Invalid Password", "Invalid Password, try again", "Login", "Cancel");
}
}
return 1; //returns 1, it has been handled
}