Your main problem is that you are not using UDFs correctly. The appropriate post in the FAQ Forum has already pointed out to you in the other thread initiated by you, so please read it.
_________________________
There are two types of vessels, submarines and targets.