He shouldn't even be returning anything, just the usual "return 1;".
Actually... I should be just because i am trying to get the Name from the ID which then i stored to a variable that is returned my the public function there..
EDIT: So how do you suggest i store the value for global use?