Results 1 to 4 of 4

Thread: Duplicate Identifyer?

  1. #1
    Join Date
    Jan 2007
    Location
    USA
    Posts
    1,782
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Duplicate Identifyer?

    Hey guys i have a question about this here i will post part of my script(don't ask what its for =p this is my first script and i think it will turn out kewl =p).

    This is just wat u need out of the script :

    {.include SRL\SRL\core\bank.scar}

    Procedure RandomOpenBank;
    begin
    wait(1243+random(500))
    FindBank(vwb);
    wait(2000+random(333));
    end;

    Procedure Closeit;
    begin
    wait(1340+random(453));
    CloseBank;<--------------------------line 26
    wait(2341+random(343));
    end;

    begin
    SetupSRL;
    RandomOpenBank;
    Withdraw(1,1,10);
    Wait(1200+random(453));
    DepositAll;
    CloseBank;
    end.

    and i get this error

    Line 26: [Error] (17690:10): Duplicate identifier 'BANKSCREEN' in script C:\Program Files\SCAR 2.03\includes\SRL\SRL\core\bank.scar

  2. #2
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    {.include SRL\SRL.scar}

    Procedure RandomOpenBank;
    begin
    wait(1243+random(500))
    FindBank('vwb'); //Function FindBank(TheBank:String)Boolean; The bank must be put as string like that.
    wait(2000+random(333));
    end;

    Procedure Closeit;
    begin
    wait(1340+random(453));
    CloseBank;
    wait(2341+random(343));
    end;

    begin
    SetupSRL;
    RandomOpenBank;
    Withdraw(1,1,10);
    Wait(1200+random(453));
    DepositAll;
    CloseBank;
    end.
    First at all, put {.include SRL\SRL.scar} in your script. And one more problem was your FindBank.

  3. #3
    Join Date
    Jan 2007
    Location
    USA
    Posts
    1,782
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    k that wasnt my whole script i have SRL included

  4. #4
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh ok, but you still get that error?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Duplicate Identifier
    By Jackrawl in forum OSR Help
    Replies: 9
    Last Post: 09-06-2007, 02:37 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
  •