PDA

View Full Version : Messed up Unrealscript source code


Zur
1st Apr 2009, 06:34 AM
Pasting this source code in uscript tags:

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):
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();
}

haarg
1st Apr 2009, 09:17 AM
Fixed.

Zur
3rd Apr 2009, 08:54 AM
Thank you.