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![]()
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![]()
i'm tryning to load time.scar or other SRL but i can't because Unknown identifier 'srl_Warn'
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.”
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.
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.
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.
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.
Hot head much? Do you think you're king scripter or something?
Oh really? I think this is what you said.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.
Even what you posted wouldn't compile.Originally Posted by Da 0wner
Apparently you were. And you "tried" to compile it, but even that wouldn't. You totally missed what I said didn't you?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.
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.
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]
Well you shouldn't have even brought that up. That just makes people think that you think you're better than everyone.
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.Originally Posted by Da Owner
~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.

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:
*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
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)