Your looking for the 'format' command, or tool, whatever. So it's the magic word you put in after Hint for example like this in your case:
_targetdist = player distance Guba
Hint format ["Guba is %1 meters away",_targetdist]
and now a hintbox with the line:
Guba is 800 meters awayis displayed if that's the distance.
Format can be used in lots of other places, the usage just varies so much that it's a tuff one. But that works for sure.