pawn Код:
if(strval(inputtext) != 5000) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "pass", "pass\n\nwrong pass\n\npass", "Pass", "Cancel");
{
format(string, sizeof(string), "%s",PlayerName(playerid));
SendClientMessage(playerid, -1, string);
}
if(strval(inputtext) != 6000) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "pass", "pass\n\nwrong pass\n\npass", "Pass", "Cancel");
{
SendClientMessage(playerid, Green, "You have succesfully logged in");
format(string, sizeof(string), "%s",PlayerName(playerid));
SendClientMessage(playerid, COLOR_GREEN, string);
}
I assume you're missing an else statement for both of those? Either way it would seem that you're making this situation far more complicated than it has to be, this would suffice, assuming this is what you want: