3856
Forum Games / Re: Avatar Rating
« on: June 12, 2013, 07:31:25 AM »
10/10.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
What are you guys, Steam?
$500 =/= €500
$500 = €378
116. Place spam bricks everywhere
Lol,port. Did you even read op?
The joke missed the port and ran aground.
[color=transparent]Yes, I know this is a joke but it's stupid as stuff.[/color]
How does it have low flexibility
and what is wrong with creating one object?
I got a referral, not suspended, for calling someone a bitch because they kicked me into a tree and laughed. c:
The good part: I was forced to go to guidance counselors for forget knows why, and they said "holy stuff! your out of control!" and they gave me a notebook to draw in whenever i got stressed.
so the forgetin' teachers that are mad at me for drawing can go forget themselves
Discuss being 11 and 11-year old things! My mommie is typing this, so I can't say anything bad.
I have many 11 year old things to discuss.
Tilde's are the best~
This is incredicute.
Code: [Select]Why are you guys doing it so complicated//in: %word[]
// %count
%sorter = new GuiTextListCtrl(){};
for(%i = 0; %i < %count; %i++)
%sorter.addRow(%i, %word[%i]);
%sorter.sort(0,1);
for(%i = 0; %i < %sorter.rowCount(); %i++)
%sorted[%i] = %sorter.getRowText(%i);
//out: %sorted[]
$alpha = "abcdefghijklmnopqrstuvwxyz_";
function sort_list( %m )
{
%count = getFieldCount( %m );
if ( !strLen( %m ) || %count <= 1 )
{
return %m;
}
%middle = mFloor( %count / 2 );
for ( %i = 0 ; %i < %middle ; %i++ )
{
%left = %left @ ( strLen( %left ) ? "\t" : "" ) @ getField( %m, %i );
}
for ( %i = %middle ; %i < %count ; %i++ )
{
%right = %right @ ( strLen( %right ) ? "\t" : "" ) @ getField( %m, %i );
}
%left = merge_sort( %left );
%right = merge_sort( %right );
return merge( %left, %right );
}
function do_single_sort( %left, %right )
{
// I'm pretty sure you can just use strStr instead of this mess.
%lln = strLen( %left );
%rln = strLen( %right );
if ( %lln < %rln )
{
%ln = %lln;
%rt = 1;
}
else
{
%ln = %rln;
%rt = 0;
}
for ( %i = 0 ; %i < %ln ; %i++ )
{
%lfs = getSubStr( %left, %i, 1 );
%rfs = getSubStr( %right, %i, 1 );
%lps = strPos( $alpha, %lfs );
%rps = strPos( $alpha, %rfs );
if ( %lps > %rps )
{
return 1;
}
if ( %rps > %lps )
{
return 0;
}
}
return %rt;
}
function merge( %left, %right )
{
%left = strReplace( %left, " ", "\x01" );
%left = strReplace( %left, "\t", " " );
%right = strReplace( %right, " ", "\x01" );
%right = strReplace( %right, "\t", " " );
while( getWordCount( %left ) > 0 || getWordCount( %right ) > 0 )
{
if ( getWordCount( %left ) > 0 && getWordCount( %right ) > 0 )
{
if ( !do_single_sort( firstWord( %left ), firstWord( %right ) ) )
{
%result = %result @ ( strLen( %result ) ? "\t" : "" ) @ firstWord( %left );
%left = restWords( %left );
}
else
{
%result = %result @ ( strLen( %result ) ? "\t" : "" ) @ firstWord( %right );
%right = restWords( %right );
}
}
else if ( getWordCount( %left ) > 0 )
{
%result = %result @ ( strLen( %result ) ? "\t" : "" ) @ firstWord( %left );
%left = restWords( %left );
}
else if ( getWordCount( %right ) > 0 )
{
%result = %result @ ( strLen( %result ) ? "\t" : "" ) @ firstWord( %right );
%right = restWords( %right );
}
}
%left = strReplace( %left, " ", "\t" );
%left = strReplace( %left, "\x01", " " );
%right = strReplace( %right, " ", "\t" );
%right = strReplace( %right, "\x01", " " );
return %result;
}
added some TNT timer proections
oh my loving god tell me that was a real edit
can't tell which one this is but it's gotta be a theme made by =kiko11 (on deviantart)
bello?
this thread would be great if there was boobs.