11.07.2016, 22:10
All you need is a variable that gets increased by 1 every time the category is the same (in the loop). When the value of the variable matches listitem, that's the teleport location.
Few things to point out:
- Don't create variables in loops.
- Show dialog once after the loop is finished.
- Better add "sizeof Teleport" instead of 50. Decreasing the size in the future will get you problems with run time error 4.
Few things to point out:
- Don't create variables in loops.
- Show dialog once after the loop is finished.
- Better add "sizeof Teleport" instead of 50. Decreasing the size in the future will get you problems with run time error 4.