void dbGlueObjectToLimb(int iSource, int iTarget, int iLimb)
That is the decleration for the function.
iSource = the source object's ID number, in your case, the ID you gave to your gun object.
iTarget = the target object's ID number, in your case, the ID you gave to col-x.x
iLimb = the ID number of the limb that you want to glue the object too, this must be a valid limb belonging to the iTarget object.
If you are having trouble finding out which limb is which, there are a couple of program in the forums here that people have written to count and display limbs for you.
If it ain't broke.... DONT FIX IT !!!