Quote:
Originally Posted by DeeJayTC
Hey,
while playing around with some ideas i was trying to get information about online friends and guildmembers and inventory slots etc.
However i always end up with "undefined" e.g no object instance found.
Was trying to do the following:
com.gameobjects.guild.getinstance().gettotalguildmembers()
com.gameobjects.friends.getonlinefriends()
com.gameobjects.friends.getonlineguildmembers()
nothing seems to work...
What is needed to access the data?
|
Add the required import.
PHP Code:
import com.GameInterface.Friends;
Set the number of online friends within a function.
PHP Code:
var onlineFriends:Number = Friends.GetOnlineFriends();
Worked for me.