Results 1 to 4 of 4

Thread: [Error]

  1. #1
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    [Error]

    I can find out wats wrong i get this
    "[Error] (15153:1): Identifier expected in script C:\.........scar"

    Code:
    begin
    SetupSRL;
    if (FindRS) then
    begin
      ActivateClient;
      Writeln('Runescape Found');
    end else
    begin
      Writeln('Runescape Not Found, Terminating Script');
      TerminateScript;
      end;
    
    Function FindFastRandoms: Boolean;    // By WT-Fakawi.
    var
      i: Integer;
    begin
      for i:=1 to 12 do
      begin
        case I of
           1:  If FindDead
    This isn't the whole thing but i want to know how to connect FindFastRandoms into my script....

  2. #2
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    You forget an end
    SCAR Code:
    begin
    SetupSRL;
    if (FindRS) then
    begin
      ActivateClient;
      Writeln('Runescape Found');
    end else
    begin
      Writeln('Runescape Not Found, Terminating Script');
      TerminateScript;
      end;
    end. //end here =]

    then how to implement the function into your script:

    First put the function before your main loop.
    SCAR Code:
    //put it above
    Function FindFastRandoms: Boolean;    // By WT-Fakawi.
    var
      i: Integer;
    begin
      for i:=1 to 12 do
      begin
        case I of
           1:  If FindDead


    begin
    SetupSRL;
    if (FindRS) then
    begin
      ActivateClient;
      Writeln('Runescape Found');
    end else
    begin
      Writeln('Runescape Not Found, Terminating Script');
      TerminateScript;
      end;
     //then you can now use it down here..
     if FindFastRandoms then DOTHIS;
    end.

    (I think this is what you're asking.. sorry if not )

  3. #3
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can i PM my script to you so you can figure it out?

  4. #4
    Join Date
    Aug 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Fine with me

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Line 135: [Error] (14845:1): Syntax error in script
    By AbsTrACt'^.| in forum OSR Help
    Replies: 16
    Last Post: 05-23-2008, 01:14 PM
  2. Replies: 5
    Last Post: 02-26-2008, 04:14 PM
  3. Smart error and Some kind of Math.scar error
    By FagetHax0r in forum OSR Help
    Replies: 6
    Last Post: 02-24-2008, 10: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
  •