I have two structs and would like the TEXT in the first struct to show the value of a STRING in the second struct.

Code:

typedef struct {
TEXT* txtPlayerName;
} MPLAYDEBUGTEXT;

typedef struct {
STRING* strPlayerName;
var varPlayerID;
var varLoaded;
} MPLAYEROBJ;



I would like the TEXT in the MPLAYDEBUGTEXT struct to show the value of the STRING in the MPLAYEROBJ struct.

I can do that with something like this

Code:
  
(mplayerdebugtext.txtPlayerName.pstring)[0] = mplayerobj.strPlayerName



But then if I change mplayerobj.strPlayerName the change is not reflected in the text object. I've tried all kinds of *'s and &s but no luck so far.