Hi,
value is an array, so you need to use special syntax - number on second palce here is index (0 = 1st group, 1 = second group etc)
$cck->getValue( 'groupx_fieldname', 0, 'fieldname' );
$cck->getTypo( 'groupx_fieldname', 1, 'fieldname' );
https://www.seblod.com/resources/extensions/plug-ins/group-x-field