
Originally Posted by
RobsoN
(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