The actual 'getunitdata' has no support for player units.
This is why you receive this message error.
If you want to get values from player units, you'll need to make a source modification.
I made one, you can test if you want.
getunitdata_pc_type.diff