13.04.2012, 00:37
Is is possible to use multiple DIALOG_STYLE_INPUT without them interfering, if so, how can I get the inputtext from the other DIALOG_STYLE_INPUT's
#define DIALOG_ONE (001)
#define DIALOG_TWO (002)
ShowPlayerDialog(playerid, DIALOG_ONE, ...);
ShowPlayerDialog(playerid, DIALOG_TWO, ...);
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_ONE:
{
//What do you want to do for dialog one?
}
case DIALOG_TWO:
{
//...and for dialog two?
}
}
return 1;
}
Thanks funky,but I also need something else. How can I get the different input texts from the different input dialogs?
|
#define DIALOG_ONE (0001)
#define DIALOG_TWO (0002)
#define DIALOG_THREE (0003)
ShowPlayerDialog(playerid, DIALOG_ONE, ...);
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_ONE:
{
//Handle all your stuff for DIALOG_ONE
ShowPlayerDialog(playerid, DIALOG_TWO, ...);
}
case DIALOG_TWO:
{
//Handle all your stuff for DIALOG_TWO
ShowPlayerDialog(playerid, DIALOG_THREE, ...);
}
case DIALOG_THREE:
{
//Handle all your stuff for DIALOG_THREE
//and so and on
}
}
return 1;
}
new String[150] format(string, sizeof(string), "You entered %s", inputtext);
No, I didn't mean that, I didn't explain well enough.
Код:
new String[150] format(string, sizeof(string), "You entered %s", inputtext); ^ Will having multiple dialogs with the DIALOG_STYLE_INPUT what will I have to do to stop the inputtext from interfering with each other |