15.06.2014, 16:30
Don't use "idx" to both of them because it changes the value of the first loop and it actually should've given you a warning 219: local variable "idx" shadows a variable at a preceding level that you probably ignored.
And by the way, why do you start the loop from 1 at bussinesses? The index from arrays start from 0 (except the vehicles because vehicle/object IDs start from 1).
And by the way, why do you start the loop from 1 at bussinesses? The index from arrays start from 0 (except the vehicles because vehicle/object IDs start from 1).