23.03.2016, 08:48
Well, then you can take i.
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,i);
//count = listitem <=> listitem = count
//You can work either with count or listitem.
return 1;
}
count ++;
}
}
}