Tablist dialogs: only part of text is passed as inputtext
#1

Example dialog:
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_TABLIST, "Hello, this is dialog", "Cl1rw1\tcl2rw1\ncl1rw2\tcl2rw2", "Yes", "no");
If I select the first option, OnDialogResponse argument inputtext has the value "Cl1rw1", which is everything before the tab character.


Or was this made purposely and it's my own fault that I rely on it?

EDIT: Although I didn't test I assume the same issue exists for TABLIST HEADER dialogs.
Reply
#2

Comfirmed.... This is very shit idea.
Reply
#3

Why is this a big deal? You get the index of the selected row anyways.
Reply
#4

Quote:
Originally Posted by ikkentim
Посмотреть сообщение
Why is this a big deal? You get the index of the selected row anyways.
Well from time to time I find myself in a need to pass something as the text. I mean I format something as the body of the dialog and then I extract it later. Ofcourse this probably isn't good practice... But when you have a list of fifty or so items and dozens of dialogs like this, it gets annoying to store the data in some array that maps from listitem to that value.
Reply
#5

It's confirmed, inputtext will store first column's text only. You'll either have to store the complete data in an array or wait for it to get fixed (in case if it's not meant to be like this).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)