21.02.2018, 19:24
When clicking an item in a list, inputtext will be called with the string of the listitem.
I personally use DIALOG_TYPE_TAB_LIST(_HEADERS) for such things, like this:
When using Tab List only the first tab will be called, so inputtext will have the ID as text.
For example
and inputtext will contain "5" as string.
ID in your case would be the ReportInfo index, not the playerid.
edit: Just saw you already did that, so you basically just have to use strval on the inputtext to retrieve the ID.
I personally use DIALOG_TYPE_TAB_LIST(_HEADERS) for such things, like this:
Код:
ID\tName\tReason\t...
For example
Код:
5\tNaS\tHacks
ID in your case would be the ReportInfo index, not the playerid.
edit: Just saw you already did that, so you basically just have to use strval on the inputtext to retrieve the ID.