Results 1 to 15 of 15

Thread: Unknown identifier 'srl_Warn'

  1. #1
    Join Date
    Feb 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Unknown identifier 'srl_Warn'

    hi all ,i'm newbi at scar ,i don't known why i can't load the script SRL because ,i can run normal script but i can't load (Unknown identifier 'srl_Warn') ,i have ther latest version of scar ''divi'' with all include updated.

    Help me plz

  2. #2
    Join Date
    Feb 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i'm tryning to load time.scar or other SRL but i can't because Unknown identifier 'srl_Warn'

  3. #3
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    srl and the includes arent meant to compile on they're own. they are a database of functions/procedures for scripters to call upon during a script to make scripting easier.
    “Ignorance, the root and the stem of every evil.”

  4. #4
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lol if you want to run Timing.scar open it in SCAR replace the code in it with this

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

    //-----------------------------------------------------------------//
    //--               Scar Standard Resource Library                --//
    //--               » Timing Routines                             --//
    //-----------------------------------------------------------------//
    // * procedure MarkTime(var TimeMarker: Integer);              // * by Stupid3ooo
    // * function  TimeFromMark(TimeMarker: Integer): Integer;     // * by Stupid3ooo
    // * function TheTime : string;                                // * by RsN
    // * function TheDate(DateFormat : Integer) : String;          // * by Ron
    // * function TimeRunning: String;                             // * by Phalanx's script/RsN
    {*******************************************************************************
    function TimeRunning: String;
    By: from Phalanx's script/RsN
    Description: Returns Time since ST (Script StartTime).
    *******************************************************************************}



    {*******************************************************************************
    procedure MarkTime(var TimeMarker: Integer);
    By: Stupid3ooo
    Description: Sets TimeMarker to current system time
    *******************************************************************************}



    {*******************************************************************************
    function TimeFromMark(TimeMarker: Integer): Integer;
    By: Stupid3ooo
    Description: returns Milliseconds since MarkTime was set
    *******************************************************************************}





    {*******************************************************************************
    function TheTime : string;
    By: RsN (fixed by Ron)
    Description: Returns current time as a string
    *******************************************************************************}




    {*******************************************************************************
    function TheDate(DateFormat : Integer) : String;
    By: Ron
    Description: TheDate will return the current date. DateFormats can be...
       1 = April 2nd, 2007  Month Day, Year
       2 = 04/02/07         Month/Day/Year
       3 = 02-04-07         Day-Month-Year
    *******************************************************************************}


    begin
    writeln('see?');
    wait(1000);
    writeln(timerunning);
    end.

    DO NOT SAVE THOUGH.
    Then replace the main loop with whatever you want .

  5. #5
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Quote Originally Posted by Da 0wner View Post
    Lol if you want to run Timing.scar open it in SCAR replace the code in it with this

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

    //-----------------------------------------------------------------//
    //--               Scar Standard Resource Library                --//
    //--               » Timing Routines                             --//
    //-----------------------------------------------------------------//
    // * procedure MarkTime(var TimeMarker: Integer);              // * by Stupid3ooo
    // * function  TimeFromMark(TimeMarker: Integer): Integer;     // * by Stupid3ooo
    // * function TheTime : string;                                // * by RsN
    // * function TheDate(DateFormat : Integer) : String;          // * by Ron
    // * function TimeRunning: String;                             // * by Phalanx's script/RsN
    {*******************************************************************************
    function TimeRunning: String;
    By: from Phalanx's script/RsN
    Description: Returns Time since ST (Script StartTime).
    *******************************************************************************}



    {*******************************************************************************
    procedure MarkTime(var TimeMarker: Integer);
    By: Stupid3ooo
    Description: Sets TimeMarker to current system time
    *******************************************************************************}



    {*******************************************************************************
    function TimeFromMark(TimeMarker: Integer): Integer;
    By: Stupid3ooo
    Description: returns Milliseconds since MarkTime was set
    *******************************************************************************}





    {*******************************************************************************
    function TheTime : string;
    By: RsN (fixed by Ron)
    Description: Returns current time as a string
    *******************************************************************************}




    {*******************************************************************************
    function TheDate(DateFormat : Integer) : String;
    By: Ron
    Description: TheDate will return the current date. DateFormats can be...
       1 = April 2nd, 2007  Month Day, Year
       2 = 04/02/07         Month/Day/Year
       3 = 02-04-07         Day-Month-Year
    *******************************************************************************}


    begin
    writeln('see?');
    wait(1000);
    writeln(timerunning);
    end.

    DO NOT SAVE THOUGH.
    Then replace the main loop with whatever you want .
    Ummm...No? That wont work, why try to run it when all you have to do is call the functions? All you need to do is this:
    SCAR Code:
    program Wowzers;
    {.Include Srl/Srl.scar}

    procedure WhatsTheTime;
    begin
      WriteLn('You have been running for: ' +TimeRunning);
      or
      WriteLn(TimeRunning);
    end;

    begin
      SetupSRL;
      Wait(1000);
      WhatsTheTime;
    end.

    Hope that helps

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  6. #6
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol camo i know it's not like i'm newb. I've been at SRL longer than you have . I was just saying that because he was trying to compile timing.scar not use it in a script xD.

  7. #7
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    But your idea wont even work tho. You're not suppose to compile the includes. The functions that normally would be there are gone. You need the function code to be able to use it. Also, you don't even have a program name. Your TimeRunning wouldn't work since there is no code to get the TimeRunning. Also, just because you have been here longer doesn't mean that you're better

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  8. #8
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Trust me, I most likely am, or about equal skill level...I seriously know how to compile a script. You can't compile an include because if you were able to then it wouldn't be an include because includes not have Program Name; or a main loop. I was wondering why this user wants to compile timing.scar in the first place. It's not like i was trying to make that code work and be used seriously. It was just a funny script because he said he wanted to compile it ;p.

  9. #9
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Quote Originally Posted by Da 0wner View Post
    Trust me, I most likely am, or about equal skill level...I seriously know how to compile a script.
    Hot head much? Do you think you're king scripter or something?

    You can't compile an include because if you were able to then it wouldn't be an include because includes not have Program Name; or a main loop.
    Oh really? I think this is what you said.

    Quote Originally Posted by Da 0wner
    Lol if you want to run Timing.scar open it in SCAR replace the code in it with this
    Even what you posted wouldn't compile.

    I was wondering why this user wants to compile timing.scar in the first place. It's not like i was trying to make that code work and be used seriously. It was just a funny script because he said he wanted to compile it ;p.
    Apparently you were. And you "tried" to compile it, but even that wouldn't. You totally missed what I said didn't you?

    So basically what you were saying was, to run this code you have to take out all of the coding to make the functions listed work and just add "{.Include SRL/SRL.Scar}" and add a main loop and it will. So, before you go around acting all big and hard, look at what you post

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  10. #10
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nope I am not known as a hot head nor was I being a hot head there. I don't think I'm king scripter but you said just because i came earlier dosen't mean i am a better scripter which made me believe you thought you were better than me, (however it may not be true, you may just be stating a fact but w/e) so I typed that.

    I didn't mean I most likely am better, I meant that I am most likely or about the same scripting level as you.

    The thing I posted compiles when you go in and edit the file yourself.
    i.e: open Includes/SRL/SRL/Core/Timing.scar in SCAR and replace it with that text.

    Then it will compile and work . Assuming you are using SCAR 3.15 not beta or 3.20RC 1/2.

  11. #11
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Da 0wner View Post
    Nope I am not known as a hot head nor was I being a hot head there. I don't think I'm king scripter but you said just because i came earlier dosen't mean i am a better scripter which made me believe you thought you were better than me, (however it may not be true, you may just be stating a fact but w/e) so I typed that.

    I didn't mean I most likely am better, I meant that I am most likely or about the same scripting level as you.

    The thing I posted compiles when you go in and edit the file yourself.
    i.e: open Includes/SRL/SRL/Core/Timing.scar in SCAR and replace it with that text.

    Then it will compile and work . Assuming you are using SCAR 3.15 not beta or 3.20RC 1/2.

    Him saying you came earlier doesn't mean you're a better scripter than him was simply stated to make you more humble. Also, you two are not on the same level. Everyone is unique. Must we state the theory of relativity?

    Also, includes don't compile unless they are included into a script. You can't compile an include just by opening it and hitting CTRL + F9.

    [invisibletext]
    JOKE'S ON YOU! I HAVE A PENIS!
    [/invisibletext]

  12. #12
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Quote Originally Posted by Da 0wner View Post
    Nope I am not known as a hot head nor was I being a hot head there. I don't think I'm king scripter but you said just because i came earlier dosen't mean i am a better scripter which made me believe you thought you were better than me, (however it may not be true, you may just be stating a fact but w/e) so I typed that.

    I didn't mean I most likely am better, I meant that I am most likely or about the same scripting level as you.
    Well you shouldn't have even brought that up. That just makes people think that you think you're better than everyone.

    Quote Originally Posted by Da Owner
    The thing I posted compiles when you go in and edit the file yourself.
    i.e: open Includes/SRL/SRL/Core/Timing.scar in SCAR and replace it with that text.
    You still clearly missed what I was telling you didn't you? I'm not going to tell you what I said, I want you to go back and re-read and post what you think I was saying. Because by reading this post, you don't have a clue.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  13. #13
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    he was trying to figure out what was wrong with srl_Warn( ); I think >.>

    but he might've wanted to know who's the better scripter.. I don't know :\

    and I was actually having a similar question..

    why can't I use srl_Warn( );? D:

  14. #14
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    *Sandstorm would like to point out that you don't need a program name to be able to compile a script:

    SCAR Code:
    {.Include SRL\SRL\Misc\Smart.Scar}
    {.Include SRL\SRL.Scar}
    {.Include SRL\SRL\Reflection\Reflection.Scar}

    procedure SetupSmart;
    begin
      SmartSetupEx(144, True, true, false);
        while not SmartActive do wait(100);
      SetTargetDC(SmartGetDC);
    end;

    Begin
      SetupSrl;
      SetupSmart;
    End.

    ~Sandstorm

  15. #15
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Many people know that already...

    And camo if you want to know what I think in this post then I will tell you.

    First you thought I thought I was the best scripter.
    Then, you said what I posted did not compile.
    Even though it did for me and the functions in Timing.scar were still working even though they were removed. If you do that then it still says time running in the debug box.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unknown Identifier.
    By iunseeni in forum OSR Help
    Replies: 2
    Last Post: 11-04-2007, 07:36 PM
  2. Unknown Identifier?!
    By ~PuRePoWeR~ in forum OSR Help
    Replies: 1
    Last Post: 05-15-2007, 08: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
  •