Problem creating a node with custom PHP code
It looks from your image like field_cmp_playerid is a user reference field, which means the column name won't be value, it will be uid. Try this code:

$node-&gt;field_cmp_playerid[LANGUAGE_NONE][0]['uid'] = $user-&gt;uid;


The field_cmp_attend_time field probably isn't getting saved because it's missing from your code. It's just a date field so the column name will be value. If the date field you're using is a UNIX timestamp type, for example, the code would look like this:

$node-&gt; field_cmp_playerid[LANGUAGE_NONE][0]['value'] = REQUEST_TIME;


Just in case you want to update your field_cmp_id as well, it's a node reference so the column name becomes nid:

$node-&gt;field_cmp_id[LANGUAGE_NONE][0]['nid'] = $nid;