Friends list HELP
Options
Hi, the biggest struggle i have is making the friends list as they are not working correctly. I am using Playmaker but i am asking here to know whether i am doing it wrongly or the problem lies with playmaker. It's also difficult to get answers from the playmaker forum.
Here's my steps:
1. Joined lobby. Friends list is empty.
2. Add friend 'Charles' to the list and then using 'Photon network find friends'
3. I got a failure event when I tried to get the status from the friends list.
It seems that the friend wasn't being added.
Please do help me with this one. I am using Unity 2017.1.2f1.
Thanks
Here's my steps:
1. Joined lobby. Friends list is empty.
2. Add friend 'Charles' to the list and then using 'Photon network find friends'
3. I got a failure event when I tried to get the status from the friends list.
It seems that the friend wasn't being added.
Please do help me with this one. I am using Unity 2017.1.2f1.
Thanks
0
Comments
-
Hi @iikii,
if you haven't done this already, I would recommend you taking a look at the UserIDs and Friends documentation page. It also covers an example how to use the FindFriends function and how to handle the following response from the server.0 -
Hi, i already have done the player nickname and user id before finding friends. It's all done in the lobby.Christian_Simon said:Hi @iikii,
if you haven't done this already, I would recommend you taking a look at the UserIDs and Friends documentation page. It also covers an example how to use the FindFriends function and how to handle the following response from the server.
I think i got a better understanding the problem that i am facing.
How does one add a friend to the friend list? I thought that I can simply add a friend's name to the array list and then using 'find friends' > Friend list update but this is not working. I must be doing it wrongly or missing some kind of information.
thanks0 -
How does one add a friend to the friend list? I thought that I can simply add a friend's name to the array list and then using 'find friends' > Friend list update but this is not working.
No, you would have to know the UserID of a friend before adding him. Having his UserID you can use thePhotonNetwork.FindFriends
function. AfterwardsOnUpdatedFriendList()
is called and you know, that your friends list is updated.0 -
That's what I have done - adding my friend userid name to the list and then using 'FindFriends'. but not working. I will try doing it again and see what's wrong.Christian_Simon said:How does one add a friend to the friend list? I thought that I can simply add a friend's name to the array list and then using 'find friends' > Friend list update but this is not working.
No, you would have to know the UserID of a friend before adding him. Having his UserID you can use thePhotonNetwork.FindFriends
function. AfterwardsOnUpdatedFriendList()
is called and you know, that your friends list is updated.
Thanks for the clarification.0