- Home /
 
               Question by 
               Genetix · Oct 25, 2013 at 01:24 AM · 
                programming  
              
 
              Adding a player to a list
Alright so i've been trying for the past couple days to get this to work but with no success. My goal is to add a player to a list when he/she connects. I believe my problem is its not converting right or something any ill post my code below if you need more then what i give just tell me and ill post it.
     [RPC]
         void AddPlayerToList (PhotonPlayer nPlayer)
         {
             joinedlist = true;
             Playerdataclas capture = new Playerdataclas();
             
             capture.networkPlayer = int.Parse(nPlayer.ToString());
             
             PlayerList.Add(capture);
         }
 
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                