Brad:
Welcome to KiXgolf. It's actually quite easy to participate. Once you download the package and unzip it into a directory all yu have to do is put the code into the kixgolf_edts.udf file and call the kixgolf_edts.kix script, e.g. via "KIX32 kixgolf_edts" from the command line. The code itself goes inside the FUNCTION and ENDFUNCTION line. Your error most likely comes fro you not explicitly declaring variables via DIM inside the UDF. We are using some restrictive SETOPTION settings for the KiXgolf rounds.
You cna always take one of the posted codes and put them into the UDF to get a feel for the way the KiXgolf packages work.
_________________________
There are two types of vessels, submarines and targets.