28.06.2020, 10:55
Quote:
|
I thought so. listitem is not the same as the carid.
Let's say you have three results: * Infernus (carid 5)[listitem = 0] * Turismo (carid 9)[listitem = 1] * NRG (carid 12)[listitem = 2] I think that says enough . You would either have to create some PVars to store the carid to the right listitem, or run the SQL code again to run the same code as in /v. If no data was altered, the listitem would be the same as the row number. |
Everything works fine now.
Solved:
I added in my cmd.
Code:
new count = 0; Selected[playerid][count] = carid; count++;
Code:
Selected[playerid][listitem]



. You would either have to create some PVars to store the carid to the right listitem, or run the SQL code again to run the same code as in /v. If no data was altered, the listitem would be the same as the row number.