Detect listitem
#3

* Just noticed that it was already was answered with a better solution than mine.


Create an array with relationship between the listitem and the output ID, and when under OnPlayerDialogResponse you can then get by the listitem the ID
Код:
new relationship[MAX_REPORTS];
cmd:pendingreports()
    for(i)
        db_get_field_assoc(REPORTS_RESULT_FINAL, "ID", relationship[i], 5); 

onDialogResponse(listitem)
    new reportid=relationship[listitem];
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)