Results 1 to 5 of 5

Thread: My First Ever Attempt!

  1. #1
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    68
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default My First Ever Attempt!

    I have been reading and following along with all the tutorials in the Beginner section.

    I will update this as I work on it.
    Right now, I just tried to something basic, where if it finds a color on the screen,
    it will Writeln('FoundColor')
    I got an error though, so I just wanted somebody to see what I did incorrectly, so I can learn for the next time.
    SCAR Code:
    program New;
    var
      MonsterColor : integer;
    const
      MonsterColor=16777215
    begin
    Procedure Findin;
      Findcolor(x,y,MonsterColor,10,10)
    If FindColor
    then
      Writeln('Found Color')
    end else
      Writeln('Didn't find Color')
    end.

    Also, please tell me how I did on the standards.


    Thank you
    -Belt

  2. #2
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program New;
    var
      MonsterColor : integer;
    const
      MonsterColor=16777215
    begin
    Procedure Findin;
      Findcolor(x,y,MonsterColor,10,10)
    If FindColor
    then
      Writeln('Found Color')
    end else
    Writeln('Didn't find Color')
    end.

    SCAR Code:
    program New;
    var
      MonsterColor : integer;
    const
      MonsterColor=16777215;

    Procedure Findin;
    begin
      if(Findcolor(x,y,MonsterColor,10,10)) then
        Writeln('Found Color')
      end else
        Writeln('Didn''t find Color')
    end;

    begin
      Findin;
    end.

  3. #3
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program New;
    const
      MonsterColor=16777215
    begin
    Procedure Findin;
      Findcolor(x,y,MonsterColor,10,10)
    If FindColor
    then
      Writeln('Found Color')
    end else
      Writeln('Did not find Color')
    end.

    begin
    Findin;
    end.

    You dont need to tell that monstercolor is an integer if your declaring it as a const. const >numbers, automatically make it an integer. Also, post the error message next time instead of just saying there was an error, may help greatly in larger situations.

  4. #4
    Join Date
    Sep 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nice attempt. Good job on the base of it though. Keep up the good work.

  5. #5
    Join Date
    Aug 2007
    Location
    In Your Front Door!
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Alomst There you got the basic understanding.
    I know because im still learning how to script!!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. First Attempt
    By Harry in forum Graphics and Multimedia
    Replies: 5
    Last Post: 03-25-2008, 01:13 PM
  2. First ever sig attempt
    By jhildy in forum Graphics and Multimedia
    Replies: 1
    Last Post: 02-13-2008, 02:42 AM
  3. 3d attempt
    By jhildy in forum Semi Stupid Pictures
    Replies: 12
    Last Post: 08-08-2007, 01:56 PM
  4. My attempt lol
    By rotflmfwao in forum OSR Help
    Replies: 8
    Last Post: 07-16-2007, 05:01 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
  •