Messed up Unrealscript source code

  • 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.

Zur

surrealistic mad cow
Jul 8, 2002
11,708
8
38
49
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();
}