Forum Scripting Problem with sync

Post your problems and discussions relating to scripting in Unity here.

Problem with sync

Postby Salvador » February 10th, 2013, 9:21 pm

Hi all!
i have problem with PlayerIO. When i connect to server, then i not see other players
Code: Select all
PlayerIOClient.PlayerIO.Connect(
         "world-of-zukaro-2ucj4k7phewsufpcsff6ow",   
         "public",                  
         userid,                     
         null,                     
         null,
         delegate(Client client) {
            Debug.Log("Successfully connected to Player.IO");

            //Create or join the room
            client.Multiplayer.CreateJoinRoom(
               "Red Room",               
               "UnityMushrooms",                  
               true,         
               null,
               null,
               delegate(Connection connection) {
                  Debug.Log("Joined Room.");
                  infomsg = "Joined Room.";
                  pioconnection = connection;
                  pioconnection.OnMessage += handlemessage;
                  joinedroom = true;
                  GameObject newplayer = GameObject.Instantiate(PlayerPrefab) as GameObject;
                  
               },
               delegate(PlayerIOError error)
               {
                  Debug.Log("Error Joining Room: " + error.ToString());
                  infomsg = error.ToString();
               }
            );
         },
         delegate(PlayerIOError error) {
            Debug.Log("Error connecting: " + error.ToString());
            infomsg = error.ToString();
         }
      );

Image
Salvador
 
Posts: 1
Joined: February 7th, 2013, 4:55 pm

Re: Problem with sync

Postby ladlasheikh » March 25th, 2015, 10:48 am

MY PROBLEM is solved now..\




________________
Usman
ladlasheikh
 
Posts: 2
Joined: March 25th, 2015, 10:46 am


Return to Scripting