Results 1 to 4 of 4

Thread: Question.

  1. #1
    Join Date
    Oct 2008
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Question.

    Yes, I try to run this script, just to see if it would compile (I know i dont have a end, its short) But anyway. When i run it i get this error

    Line 13: [Error] (13:1): Unknown identifier 'FindObjCustom' in script

    How do i fix this?

    This is my script..

    program Chicken;


    var
    x,y: integer;

    const
    ChickenColor1 = 2836573;
    ChickenColor2 = 8235192;
    ChickenColor3 = 3502992;

    begin
    FindObjCustom(x, y, ['att', 'ack'], [ChickenColor1, ChickenColor2,Chickencolor3], 5);

  2. #2
    Join Date
    Oct 2006
    Posts
    1,190
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    you need to incluse SRL, try having a quick look at some tutorials



  3. #3
    Join Date
    Sep 2008
    Location
    Adelaide, South Aust
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Bonfield View Post
    you need to incluse SRL, try having a quick look at some tutorials
    Thats right try adding this to the start of your script like so:
    SCAR Code:
    program Chicken;
    {.include SRL\SRL.scar}

    var
    x,y: integer;

    const
    ChickenColor1 = 2836573;
    ChickenColor2 = 8235192;
    ChickenColor3 = 3502992;

    procedure FindChicken;
    begin
    FindObjCustom(x, y, ['att', 'ack'], [ChickenColor1, ChickenColor2,Chickencolor3], 5);
    end;

    //Main Loop//
    begin;
    FindChicken;
    end.

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

    Default

    dont forget to SetupSRL;
    ~ Metagen

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. i has a question
    By Solkrieg in forum OSR Help
    Replies: 5
    Last Post: 10-30-2008, 08:20 AM
  2. tab 5 question
    By dvdcrayola in forum OSR Help
    Replies: 4
    Last Post: 07-04-2008, 06:43 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
  •