PlayerList different in master client and client

Options
Hi, i'm facing a weird problem.
I'm making a board game and each player (There are just two players in each room) show the name of his opponent and his name too on the board.
When there are two in the room, I get the player list. In the client when I get the playerList, I have the master client[0] and the client[1]. In the master client when I get this list, the first player is empty[0], and the second player is the master client[1].

After a debug i notice that in the array of playerList the first case contains "#02", and the 2nd case contains the master client.

How could I do to solve it ? Thanks

Comments

  • vadim
    Options
    Hi,

    How do you iterate player list? Of course lists should be identical while both clients are joined to a room. Please make sure that clients' states are Joined.
  • kosted
    Options
    I found a solution. There is difference between the two lists because there is a little delay. When the client get this list he has all information but at that moment the master client doesn't have these datas. So I use RPC to send info I want.