use Str_cpy

use Str_cpy(mplayerdebugtext.txtPlayerName.pstring)[0] , layerobj.strPlayerName);