dialogs
#1

fixed thanks to JaTochNietDan
Reply
#2

I need this right now :S Please anyone help
Reply
#3

EDIT: ah damn nvm
Reply
#4

fixed
Reply
#5

I don't understand your syntax here:

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:

pawn Код:
if(strval(inputtext) != 1200 && strval(inputtext) != 1500) return ShowPlayerDialog(....)
else
{
    // Password was right
}
Reply
#6

fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)