10.02.2014, 12:47
You have a loop that will return either true or false in the very first iteration. It doesn't matter about all the other problems until you fix that. Basically, if you aren't near the first vehicle, it will never work because none of the others will be tested - the function has ended.
Edit: Fixed by [uL]Pottus' code.
Edit: Fixed by [uL]Pottus' code.