warning 209: function "NearATrunk" should return a value
#7

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)