03.06.2014, 09:20
Hello,
I've a question about dialogs, which style is DIALOG_STYLE_LIST. If I have a dialog with unknown count of items, what should I do under OnDialogResponse (listitems?).
For an example: I looped through online players and created a dialog where list items depends on online players count.
What numbers should I use there:
I want to press on player name and see the latest info.
+rep for helper
I've a question about dialogs, which style is DIALOG_STYLE_LIST. If I have a dialog with unknown count of items, what should I do under OnDialogResponse (listitems?).
For an example: I looped through online players and created a dialog where list items depends on online players count.
What numbers should I use there:
pawn Код:
OnDialogResponse(...)
{
if(dialogid == lalala)
{
if(listitem == /*?????*/) {}
if(listitem == /*?????*/) {}
}
return 1;
}
+rep for helper