Results 1 to 5 of 5

Thread: Unable to register function

  1. #1
    Join Date
    Jun 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Unable to register function

    Hello everyone,

    I've got a problem while running scar scripts.
    SCAR Code:
    Line 1: [Error] (1:1): Unable to register function function FindGapsTPA(TPA : TPointArray; MinPixels: Integer): T2DPointArray; in script

    How can i fix this?
    I've got the newest version.

    Thanks,
    Superwauwie

  2. #2
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Post the script up, it may help
    Project: Welcome To Rainbow

  3. #3
    Join Date
    Jun 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    For example, this one ( i didn't made this):
    program New;
    {.include SRL/SRL.scar}

    const
    LoadsPerPlayer = 10; //Amounts of loads per player before switching.
    TreeColor = 0; //Fill in the treecolor here.
    WaitPerTree = 5000; //the time to wait while we are chopping the tree in Miliseconds.
    procedure DeclarePlayers;
    begin
    SetupPlayers;

    Players[0].Name := '';
    Players[0].Pass := '';
    Players[0].Nick := '';
    Players[0].Active := True;

    Players[1].Name := '';
    Players[1].Pass := '';
    Players[1].Nick := '';
    Players[1].Active := True;

    LoadPlayerArray;
    end;

    procedure ChopTree;
    var
    x, y, MyMark : integer;
    begin
    if not Loggedin then Exit;
    MarkTime(MyMark);
    repeat
    if FindObj(x, y, 'hop', TreeColor, 30) then
    begin
    Mouse(x, y, 0, 0, False);
    if ChooseOption('hop') then
    begin
    //increase 1 to the total tree chop - if we had one
    Wait(WaitPerTree);
    Exit; //We clicked chop, now we can exit this procedure.
    end;
    end;
    if TimeFromMark(MyMark) > (2 * 60 * 100) then
    begin
    Logout;
    Exit;
    end;
    until false
    end;

    begin
    SetupSRL;
    DeclarePlayers;
    if LoggedIn then Logout;
    LoginPlayer;
    repeat
    ChopTree;
    if InvFull then
    begin
    DropToPosition(2, 28);
    Inc(Players[CurrentPlayer].Banked);
    if Players[CurrentPlayer].Banked mod LoadsPerPlayer = 0 then
    begin
    NextPlayer(True);
    end;
    end;
    if not Loggedin then NextPlayer(False);
    until false
    end.

  4. #4
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    You have an old version of SCAR, nothing to do with the script.

    Get SCAR 3.15b here.

  5. #5
    Join Date
    Jun 2007
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thx I had version 3.2.. but I though that 3.2 was the newest version.

    Superwauwie

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unable to register function
    By pieman24 in forum OSR Help
    Replies: 5
    Last Post: 03-02-2008, 04:34 PM
  2. Replies: 2
    Last Post: 02-26-2008, 08:26 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
  •