You need to do a while loop for the user list, and inside that loop call your doaddpoints function