Results 1 to 10 of 22

Thread: TestClients

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Quote Originally Posted by RobsoN View Post
    (stuck on self waittill("begin") )
    just use the default callback_playerconnected() procedure (or the slightly modified one below)

    Code:
    Callback_PlayerConnect()
    {
    	self endon( "disconnect" );
    
    	self thread notifyConnecting();
    
    	self.statusicon = "hud_status_connecting";
    
    	self waittill( "begin" );
    
    	self.statusicon = "";
    	
    	waittillframeend;
    //...do your callback catching stuff here, AFTER everything went fine
    }
    
    notifyConnecting()
    {
    	self endon( "disconnect" );
    	self endon( "begin" );
    
    	waittillframeend;
    
    	if( isDefined( self ) )
    	{
    		level notify( "connecting" , self );
    	}
    }
    add a shitload of debug-iprintln()'s in combination with getTime() to see where it stucks and why

  2. The Following User Says Thank You to serthy For This Useful Post:

    RobsoN (15th October 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •