So the title says it all... I'm making something for my game that will let players do things like donate items, send messages, visit their 'place' and other things. Even when they're offline, but it needs the player to know the other player's ID for it to work. this is fine but I want to make it simpler for the player by just using the other layer's name but data in my game is stored with user's IDs. So could I somehow use the player's name and get their ID with it?
✓ ANSWER ACCEPTED
How do I get a user's ID with only their name that's offline?
2 answers
✓ Accepted answer
There is an api for it here:- Get ID from username
The problem is that the httpservice cannot access this so you will have to find a way around this, e.g. call to another server to ask for the info?
Hope this helps.
game.Players:GetUserIdFromNameAsync("Name")
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
http://wiki.roblox.com/index.php?title=API:Class/Players/GetUserIdFromNameAsync