Results 1 to 7 of 7

Thread: Error Compiling

  1. #1
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default Error Compiling

    When compiling a script I just wrote I get the following:
    Code:
    [Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms/pinball.scar(37:3): Variable 'MA' never used at line 36
    [Error] C:\Simba\Includes\SRL/SRL/Misc/Smart.scar(9:10): Duplicate identifier 'ISKEYDOWN' at line 8
    Compiling failed.

    Is this an error with my script or have I set the client up slightly wrong?

    I can post parts/all of my script upon request

  2. #2
    Join Date
    Dec 2009
    Location
    R_GetPlayerLoc;
    Posts
    2,235
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    First off wrong section. Next time post in the help section.

    Posting the script always helps.

    Its says duplicate identifier so im guessing you have a function or variable called iskeydown...
    "Logic never changes, just the syntax" - Kyle Undefined?

    Remember, The Edit Button Is There For A Reason!!!

  3. #3
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Yago View Post
    First off wrong section. Next time post in the help section.

    Posting the script always helps.

    Its says duplicate identifier so im guessing you have a function or variable called iskeydown...

    Sorry, can a mod or admin move it?

    it opens up another tab with the title 'smart' and highlights line 8
    line 8 of that script is
    Simba Code:
    function IsKeyDown(C:Byte): Boolean;


    my script:
    Simba Code:
    program MultiTalk;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Misc/Smart.scar}

    Var
      Typed: Integer;
      Unlimited, LoggedHalf, AtLogin, JagexKissAss: Boolean;
      Ver: String;
      ThreeQuarters, Half: Real;

    //==================================== you fill this part in ============================================\\

    Const
      Text = 'Go to [url]www.fakerunescape.com[/url] to lose all of your money';          //The text that you would like to type
      Times = 1000;             //Set to 0 for unlimited
      TalkFast = False;         //Only use if you will be banned anyway (e.g. advertising websites)
      World = 11;               //Choose your world...
      JagexKissAss = FALSE;     //Member?
      Username = YourUsername;  //Your Login name/email
      Password = YourPassword;  //Your Password here
      WTime = 1000;             //Wait time between types, will auto random, set low if TalkFast is true
      Version = 0.1;            //MINE! No touching!

    //====================== you are not required to change below this line =================================\\
    procedure Talk;
    begin
      if (Times = 0);
        then
          Repeat
            TypeSend(Text);
            Typed := Typed + 1;
            Writeln('Typed '+Typed+' Times');
            Wait(ThreeQuarters+Random(Half));
          Until(false);
        else
          Repeat
            TypeSend(Text);
            Typed := Typed + 1;
            Writeln('Typed '+Typed+'/'Times);
            Wait(ThreeQuarters+Random(Half));
          Until(Typed >= Times);
    end;


    procedure SuperFast;
    begin
      if (Times = 0);
        then
          Repeat
            SendKeys(Text);
            TypeSend(' ');
            Typed := Typed + 1;
            Writeln('Typed '+Typed+' Times');
          Until(false);
        else
          Repeat
            SendKeys(Text);
            TypeSend(' ')
            Typed := Typed + 1;
            Writeln('Typed '+Typed+'/'+Times);
          Until(Typed >= Times);
    end;

    procedure CheckVersion;
    begin
      Ver := GetPage('http://pastehtml.com/view/bdsde4e5q.txt');
      If Version = Ver Then
        Begin
          WriteLn('You are using the most up to date version')
        Else
          WriteLn('Please Update This Script By Going To [url]http://goo.gl/UpgDT[/url]')
          TerminateScript;    //Comment out this to use this version anyway
    end;

    Procedure ClickLeaveAlone;
    Begin
      if ((FindColorTolerance(var x, y: Integer; 3058112, 467, 401, 526, 417, 10: Integer): Boolean;) = False) Then
      Begin
        WriteLn('Clicking Leave Alone')
        Mouse(375, 300,15,3,true)
        Wait(500+Random(50))
        WriteLn('Clicked Leave Alone')
      Else
        WriteLn('Going for Login');
    end;

    Procedure UsernameandPass;
    Begin
      Mouse(543, 324,3,3,true);
      TypeSend(Username);
      wait(500+Random(200));
      Mouse(543, 372,3,3,true);
      wait(100+Random(50));
      TypeSend(Password);
    end;

    Procedure DoLogin;
    Begin
      Mouse(445, 413,20,2,true);
      WriteLn('Clicked Login');
      WriteLn('Waiting For Lobby!');
        repeat
          wait(2000)
          LoggedHalf := (FindColorTolerance(var x, y: Integer; 4357011, 270, 449, 407, 607, 10: Integer): Boolean;)
        until(LoggedHalf=True);
      WriteLn('Found Lobby')
      Wait(500+Random(200));
      Mouse(383, 462,5,5,true);
         repeat
           wait(2000)
           LoggedHalf := (FindColorTolerance(var x, y: Integer; 726554, 270, 449, 407, 607, 10: Integer): Boolean;)
         until(LoggedHalf=False)
    end;

    begin
      WriteLn('Hello ' + Username)
      CheckVersion;
      ThreeQuarters := ((WTime DIV 4)*3);
      Half := (WTime DIV 2);
      WriteLn('Config Complete');

      Smart_Server := World;
      Smart_Members := JagexKissAss;
      Smart_Signed := False;
      Smart_SuperDetail := False;
      SetupSRL;

      if (JagexKissAss = True) Then
        WriteLn('You Disgust Me...')   //Just Kidding
      else
        WriteLn('Almost Done...')

      WriteLn('Setup Complete');

      ClickLeaveAlone
      UsernameandPass;
      DoLogin;

      if (talkfast = false)
        then
          Talk;
        else
          SuperFast;
    end.

  4. #4
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    That isn't your script, and it's probably outdated.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  5. #5
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Harry View Post
    That isn't your script, and it's probably outdated.
    anything i can do? could you try compiling the script for me as I have written all of that without compiling at all

  6. #6
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Proof it isn't my script, compiling this gets the same error

    Simba Code:
    program new;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Misc/Smart.scar}
    begin
    end.

  7. #7
    Join Date
    May 2007
    Location
    England/Liverpool
    Posts
    1,004
    Mentioned
    9 Post(s)
    Quoted
    106 Post(s)

    Default

    Remove Smart your not using it
    This line ---{.include SRL/SRL/Misc/Smart.scar}
    that's what's causing the failed compile
    Previously Known or not Known as CRU1Z1N.
    If you want to succeed you should strike out on new paths, rather than travel the worn paths of accepted success.(John D. Rockefeller)

Thread Information

Users Browsing this Thread

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

Posting Permissions

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