generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: GetFriendsOnline() troubles

Previous Thread :: Next Thread 
morash is not online. 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
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
07 Sep 2013 02:18 PM
It might not be working yet?
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
07 Sep 2013 02:19 PM
... RAIG!!!
Report Abuse
morash is not online. 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
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
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 is not online. 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
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
07 Sep 2013 02:22 PM
GetOnlineFriends is not a valid member of player. Both LocalScript and Server Script.
Report Abuse
morash is not online. 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 is not online. 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 is not online. 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
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image