How to make a password confirmation?
#8

Quote:
Originally Posted by Xtreme Brotherz
Посмотреть сообщение
i already kmow that, but i'm looking for a way to get the input text from both the dialogs in one function

Can OnDialogResponse return string?
That's what I said first, to assign the inputtext on an array. Here's an example:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == something) {
        format(myArray[playerid], 128, inputtext); //Stores inputtext.
    }
    if(dialogid == something2) {
        if(!strcmp(inputtext, myArray[playerid], false)) { //if both the texts are equal (case-sensitive)
        //Stuffs
        }
    }
    return 1;
}
Reply


Messages In This Thread
How to make a password confirmation? - by Xtreme Brotherz - 09.05.2014, 14:03
Re: How to make a password confirmation? - by Dignity - 09.05.2014, 14:07
Re: How to make a password confirmation? - by Xtreme Brotherz - 09.05.2014, 14:12
Re: How to make a password confirmation? - by Dignity - 09.05.2014, 14:13
Re: How to make a password confirmation? - by Xtreme Brotherz - 09.05.2014, 14:16
Re: How to make a password confirmation? - by Lordzy - 09.05.2014, 15:01
Re: How to make a password confirmation? - by Xtreme Brotherz - 09.05.2014, 15:05
Re: How to make a password confirmation? - by Lordzy - 09.05.2014, 15:09

Forum Jump:


Users browsing this thread: 1 Guest(s)