13.04.2012, 01:23
Quote:
Thanks funky,but I also need something else. How can I get the different input texts from the different input dialogs?
|
pawn Код:
#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;
}