how to make serach in dialog ?
#6

Quote:
Originally Posted by ginger
View Post
Use this anywhere to show a search dialog:
pawn Code:
ShowPlayerDialog(playerid, DIALOG_ID_HERE, DIALOG_STYLE_INPUT, "Search Dialog:", "The content here!", "Search", "Cancel");
Now, for functionality of the dialog, use this:
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_ID_HERE)
    {
        if(response)
        {
            if(! strcmp(inputtext, "example text"))
            {
                //if you want the inputext match with the specified text completely!
            }
           
            if(! strfind(inputtext, "example text"))
            {
                //if you want the inputtext be relative to the specified text!
            }
        }
    }
    return 1;
}
According to your words, this is what i think you want.
I want it to be with an array of all the objects...
Reply


Messages In This Thread
how to make serach in dialog ? - by _Application_ - 27.01.2015, 12:22
Re: how to make serach in dialog ? - by Stanford - 27.01.2015, 12:23
Re: how to make serach in dialog ? - by dionisak0s - 27.01.2015, 12:27
Re: how to make serach in dialog ? - by _Application_ - 27.01.2015, 12:27
Re: how to make serach in dialog ? - by Gammix - 27.01.2015, 12:32
Re: how to make serach in dialog ? - by _Application_ - 27.01.2015, 17:00
Re: how to make serach in dialog ? - by _Application_ - 28.01.2015, 17:09

Forum Jump:


Users browsing this thread: 2 Guest(s)