morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 07 Sep 2013 02:14 PM |
friends = game.Players.LocalPlayer:GetOnlineFriends()
14:13:30.795 - httpGet failed. Trying again. Error: empty url. Elapsed time: 0.102071 14:13:30.825 - Http exception occurred empty url 14:13:30.826 - Script 'Players.Player1.PlayerGui.ScreenGui.LocalScript', Line 2 14:13:30.827 - stack end |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2013 02:18 PM |
| It might not be working yet? |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
| |
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 07 Sep 2013 02:20 PM |
| I was planning a nice little widget to make using this. |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2013 02:21 PM |
Give it time. Its not even documented on the wiki yet. Where did you find this? |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 07 Sep 2013 02:22 PM |
| The object browser in roblox studio. They actually keep up with it. ^.^ |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2013 02:22 PM |
| GetOnlineFriends is not a valid member of player. Both LocalScript and Server Script. |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 07 Sep 2013 02:25 PM |
| woops, I got it mixed up, its GetFriendsOnline() |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 07 Sep 2013 02:36 PM |
Basically what the object browser says is:
Dictionary GetFriendsOnline(int maxFriends = 50)
So what it will do is return a Dictionary of the friends online up to the optional number you set. The default for max friends would be 50. From what I can assume, it will return something along the lines of:
friends = { "morash" = "Sword Fighting Tournament" "CloneTrooper1090" = "Stalker V2.0.0" }
I probably got the version wrong with Stalker :| |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 07 Sep 2013 03:20 PM |
| No, it would most likely return only friends and if online AND/OR the game place ID. |
|
|
| Report Abuse |
|
|
|
| 07 Sep 2013 03:52 PM |
| I guess it would return -1 or 0 if they are not in a game then :P |
|
|
| Report Abuse |
|
|