Results 1 to 4 of 4

Thread: Can YOU figure it out??

  1. #1
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Can YOU figure it out??

    SCAR Code:
    program hmmzzz;

    Function DoThis : TPointArray;
    var i : Integer;
         this : TPointArray;
    begin
      SetLength(this, 100);
      for i := 0 to 100 do
      begin
        this[i] := inttopoint(i mod 2, i mod 5);
      end;
      result := this;
    end;

    var this : TPointArray;
         i : Integer;
    begin
      this := DoThis;
      for i := 0 to high(this) do
        MoveMouse(this[i].x, this[i].y);
    end.

    I dun get it it doesnt work.
    ~ Metagen

  2. #2
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nvm im leaving
    ~ Metagen

  3. #3
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    SetLength(this, 100);
    for i := 0 to 100 do

    array length 100 = array index 0 til 99.
    so make the length 101 or do for i := 0 to 99.
    I made a new script, check it out!.

  4. #4
    Join Date
    Oct 2006
    Location
    Texas
    Posts
    1,450
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Markus View Post
    SetLength(this, 100);
    for i := 0 to 100 do

    array length 100 = array index 0 til 99.
    so make the length 101 or do for i := 0 to 99.
    That was kinda obvious.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Bug, Very hard to figure!
    By faster789 in forum OSR Help
    Replies: 6
    Last Post: 04-07-2008, 09:37 AM
  2. Grrr... Can't seem to figure this out!!
    By Illkillutill in forum OSR Help
    Replies: 16
    Last Post: 02-14-2008, 03:25 AM
  3. Cant figure out a way to...
    By r3dr4g0n in forum OSR Help
    Replies: 8
    Last Post: 10-02-2007, 06:14 PM

Posting Permissions

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