1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Messed up Unrealscript source code

Discussion in 'Wiki General' started by Zur, Apr 1, 2009.

  1. Zur

    Zur surrealistic mad cow

    Joined:
    Jul 8, 2002
    Messages:
    11,702
    Likes Received:
    4
    Pasting this source code in uscript tags:

    Code:
    event Destroyed()
    {
    	local int i;
    	local string g;
    		
    	//Kill all players/references
    	for (i=0; i<256; i++)
    	{
    		if (nbsp[i] != None)
    		{
    			//Destroy References
    			if (nbsp[i] != None)
    				nbsp[i].Destroy();
    
    			if (poll[i] != None)
    				killPoll(i);
    		
    			DestroyPI(i);
    		}
    	}	
    		
    	if (packages != None)
    		packages.Destroy();		
    	
    	if (worker != None)
    		worker.Destroy();
    
    	if (settings != None)
    		settings.Destroy();
    
    	if (ny != None)
    		ny.Destroy();
    
    	if (fix != None)
    		fix.Destroy();
    
    	if (reporter != None)
    		reporter.Destroy();
    
    	if (logger!=None)
    	{
    		logger.StopLog();
    		logger.Destroy();
    		logger = None;
    	}
    	Super.Destroyed();
    }
    Produces this (see first for loop):
    Code:
    event Destroyed()
    {
    	local int i;
    	local string g;
     
    	//Kill all players/references
    	for (i=0; i<| class="re0">256; i++| class="br0">)
    	{
    		if (nbsp[i] != None)
    		{
    			//Destroy References
    			if (nbsp[i] != None)
    				nbsp[i].Destroy();
     
    			if (poll[i] != None)
    				killPoll(i);
     
    			DestroyPI(i);
    		}
    	}	
     
    	if (packages != None)
    		packages.Destroy();		
     
    	if (worker != None)
    		worker.Destroy();
     
    	if (settings != None)
    		settings.Destroy();
     
    	if (ny != None)
    		ny.Destroy();
     
    	if (fix != None)
    		fix.Destroy();
     
    	if (reporter != None)
    		reporter.Destroy();
     
    	if (logger!=| class="kw9">None)
    	{
    		logger.StopLog();
    		logger.Destroy();
    		logger = None;
    	}
    	Super.Destroyed();
    }
     
  2. haarg

    haarg PC blowticious

    Joined:
    Apr 24, 2002
    Messages:
    1,927
    Likes Received:
    0
    Fixed.
     
  3. Zur

    Zur surrealistic mad cow

    Joined:
    Jul 8, 2002
    Messages:
    11,702
    Likes Received:
    4
    Thank you.
     

Share This Page