21.02.2018, 19:32
* 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
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];