Detect listitem
#2

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:

Код:
ID\tName\tReason\t...
When using Tab List only the first tab will be called, so inputtext will have the ID as text.

For example

Код:
5\tNaS\tHacks
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.
Reply


Messages In This Thread
Detect listitem - by jasperschellekens - 21.02.2018, 19:21
Re: Detect listitem - by NaS - 21.02.2018, 19:24
Re: Detect listitem - by Kaperstone - 21.02.2018, 19:32
Re: Detect listitem - by jasperschellekens - 01.05.2018, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)