Is there a way to get SRL's revision number from a script? As in?SCAR Code:if (Rev < 14) then
begin
WriteLn('Get Revison 14 please.');
TerminateScript;
end;
Thanks for help with this nubby question
~ Harry
Is there a way to get SRL's revision number from a script? As in?SCAR Code:if (Rev < 14) then
begin
WriteLn('Get Revison 14 please.');
TerminateScript;
end;
Thanks for help with this nubby question
~ Harry
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!
i dont wanna tell anybody how to do their job *cough* devs *cough*but it would be nice if this was added in every rev
simple but functionalSCAR Code:function ReturnRev: integer;
var
ThisRev: integer;
begin
ThisRev := 14;
Result := ThisRev;
end;
Or in Globals.scar... there is an empty spot, it looks like they removed it or something
Would be nice to have var SRLVersionNumber = '4.14'; thereSCAR Code:{ const SRLVersionNumber;
Description: Repository Version Number. }![]()
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!
This just MIGHT be crazy enough to work.
Mouse(coords of "File" botton in scar);
if findobjcustom(text = ">", color = the pitch black blod text font) then...
The > means when scar says "Update SRL SVN (X -> X)", and the color is different than other fonts, so it might work.
So basicly if it finds that you haven't updated rev, then it will do w/e you want.
idk gl.
so all they *cough* devs *cough* need to do is put
in teh globalsSCAR Code:const
Rev = 4.14;
So any Developers gonna consider this?![]()
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!



SCAR Code:program New;
function GetRev: Integer;
begin
Result:= StrToIntDef(Between('Revision ', ': /', GetPage('http://www.srl-forums.com/srl-repos/')), -1);
end;
begin
writeln(inttostr(GetRev));
end.![]()
Code:
- Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
- Solarwind: Dude, you are like... t3h s3x.
- Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
- benjaa: woah.... Jukka is the man Guildminer pwns all
- NaumanAkhlaQ: And JuKKa Is my Her0!
Will add it.
Const SRLVersionNumber = 14;
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
There are currently 1 users browsing this thread. (0 members and 1 guests)