23.03.2016, 08:38
You would like to get the vehicle id, wouldn't you? Then you have to do it like this:
PHP код:
if(dialogid == 559)
{
if(response)
{
new count;
for(new i;i<MAX_RP_VEHICLES;i++)
{
if(listitem == count)
{
printf("playerid %d clicked on the vehicle id %i",playerid,VehicleInfo[listitem][vID]);
//count = listitem <=> listitem = count
//You can work either with count or listitem.
return 1;
}
count ++;
}
}
}