Results 1 to 5 of 5

Thread: Writing Letters to the debug box?

  1. #1
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Writing Letters to the debug box?

    SCAR Code:
    WriteLn(P[0] + P[1] + P[2]);

    Where

    SCAR Code:
    P := [65, 65, 65];

    I want it to take those numbers, convert them into the proper string, and write it to the debug box.

    SCAR Code:
    WriteLn(P[0] + P[1] + P[2]);
    Inc(P[I]);
    Wait(1);

    So that (repeated) would return something like this:

    SCAR Code:
    AAA
    BAA
    CAA
    DAA

    Etc.

    If anyone knows how, please let me know .

    ~Sandstorm

  2. #2
    Join Date
    Mar 2007
    Location
    Players[-1].Loc
    Posts
    962
    Mentioned
    4 Post(s)
    Quoted
    5 Post(s)

    Default

    Something like this?
    SCAR Code:
    program New;
    var
      a, b, c: integer;
    begin
    for a := 0 to 25 do
      for b := 0 to 25 do
        for c := 0 to 25 do
          Writeln(Chr(65 + a) + Chr(65 + b) + Chr(65 + c));
    end.

  3. #3
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Make P an Array of char, and use WriteLn(Char(P[0]) + Char(P[1]) + Char(P[2]));

  4. #4
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Exactly! Thank you. I forgot about Chr :P.

    ~Sandstorm

  5. #5
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    SCAR Code:
    program New;
    var
      i,k: Integer;
      t: TVariantArray;
    begin
      t := ([0,'A',1,'B',2,'C',3,'D']);
      K := 0;
      for i := 1 to high(t) do
      begin
        writeln(t[i+k]+''+ T[1]+t[1]);
        if i = 4 then break;
        inc(k);
      end;
    end.
    ?

    Edit: Crap, to late.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Capital Letters?
    By ry0240 in forum OSR Help
    Replies: 3
    Last Post: 12-06-2007, 07:44 AM
  2. Post RS's stupid letters...
    By legendaryhero90 in forum The Bashing Club / BBQ Pit
    Replies: 0
    Last Post: 10-27-2007, 05:41 AM
  3. jagex faggots letters
    By RudeBoiAlex in forum News and General
    Replies: 11
    Last Post: 09-19-2007, 10:07 AM
  4. How to make those nice looking block letters?
    By Buckleyindahouse in forum SRL Site Discussion
    Replies: 7
    Last Post: 01-11-2007, 01:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •