Author Topic: Torque Console Commands  (Read 79278 times)

how do i fix this
Code: [Select]
function i hate the clock explodeclock(); explodeclock(); explodeclock(); explodeclock(); explodeclock(); explodeclock(); explodeclock();i wond it to conetey exploed the clock ok.  :cookieMonster: :cookie: :cookie: :cookie: :cookie: :cookie: :cookie: :cookie: :cookie: :cookie:  TEN RANDOM GIE EATING YOU EWER COKKES

User was banned for this post
what lol

The getnonsense(); isn't in the if statement, I corrected it by tabbing correctly.
I have two words for you:

function

and

sC(%a,%b,%c){if(%b==%c)return%a;%d=%b;%e=%c;%b=Min(%d,%e);%c=Max(%d,%e);%f=getSubStr(%a,%b,1);%g=getSubStr(%a,%c,1);if(%b>0)%i=getSubStr(%a,0,%b);else%i="";if(%b+1!=%c)%j=getSubStr(%a,%b+1,(%c-%b)-1);else%j="";if(%c<strLen(%a)-1)%h=getSubStr(%a,%c+1,strLen(%a));else%h="";return%i@%g@%j@%f@%h;}

Notice the entire thing is on one line with no indentation and multiply if statements, and if you put the two words together, only contains 1 space.

what lol
I was the one that reported him :p

I have two words for you:
You tabbed it incorrectly which makes it read wrong by a human.

Way to not know how shorthand if statements work.

You tabbed it incorrectly which makes it read wrong by a human.

Way to not know how shorthand if statements work.
In case you diddnt know, I wasn't going for
"human friendly", I was showing you that indentation means absolutely nothing, even line breaks mean absolutely nothing.

Line breaks original purpose: storing recipies in Ms-DOS.

Note that the code is entirely valid, and will work as originally intended with no errors.

hey ipquarx

that argument is two years old

Hey lugnut

I enjoy debating with Kalphiter

looked like one or both of you was hurling insults


soooo

i expanded this so i could read it and figure out what it does

couldn't figure it out

what does it do

Code: [Select]
sC(%a,%b,%c)
{
if(%b==%c)
return %a;
%d = %b;
%e = %c;
%b = Min(%d, %e);
%c = Max(%d, %e);
%f = getSubStr(%a, %b, 1);
%g = getSubStr(%a, %c, 1);
if(%b > 0)
%i = getSubStr(%a, 0, %b);
else
%i = "";
if(%b+1 != %c)
%j = getSubStr(%a, %b+1, (%c - %b) - 1);
else
%j = "";
if(%c < strLen(%a) - 1)
%h = getSubStr(%a, %c+1, strLen(%a));
else
%h = "";
return %i @ %g @ %j @ %f @ %h;
}

i expanded this so i could read it and figure out what it does

couldn't figure it out

what does it do

Code: [Select]

it displays a syntax error report

it displays a syntax error report
Thats because he forgot the word "function".

Does it do anything useful?

Does it do anything useful?
Try it and see for yourself, it actually does do something.

Thats because he forgot the word "function".
It was a very subtle joke by port, read again

It was a very subtle joke by port, read again
Ah, I got it now.

sC(%a,%b,%c){if(%b==%c)return%a;%d=%b;%e=%c;%b=Min(%d,%e);%c=Max(%d,%e);%f=getSubStr(%a,%b,1);%g=getSubStr(%a,%c,1);if(%b>0)%i=getSubStr(%a,0,%b);else%i="";if(%b+1!=%c)%j=getSubStr(%a,%b+1,(%c-%b)-1);else%j="";if(%c<strLen(%a)-1)%h=getSubStr(%a,%c+1,strLen(%a));else%h="";return%i@%g@%j@%f@%h;}

I hate you.
« Last Edit: August 15, 2012, 01:57:15 AM by Electrk »