10.02.2019, 20:52
Apply the same logic in dialog response.
For your information, array indexes start from 0.
pawn Код:
new counter;
for (new StadiumID = 1; StadiumID < MAX_STADIUMS; StadiumID++)
{
if (AStadium[StadiumID][PickupID] != 0)
{
if (counter++ == listitem)
{
format(String, sizeof(String), "You're next to %s stadium", AStadium[StadiumID][StadiumLocation]);
SendClientMessage(..);
break;
}
}
}