Hey, just a follow up.
It looks like you forgot an end parenthesis in that code
updateMemberData($context['user']['id'], array('money' => 'money + ' . $points);
It looks like it should be
updateMemberData($context['user']['id'], array('money' => 'money + ' . $points));
Also I decided to use:
updateMemberData($ID_MEMBER, array('money' => 'money + ' . $points));
is there a reason why you use the $context instead of $ID_MEMBER? This is purely a curiousity question because I'm still learning SMF coding structure.