I usually just use a variable to save my UID. Is there a reason why you are using a function to store it instead? Try running your game on debug, and look at the UID you stored. Is it correctly updating or is it staying at the same number?
Just a tip, but when replying add a @ + their nick (eg @rekjl), that way we will get a notification that you replied on the post.