mat_de_b
09-02-2007, 01:48 PM
A little function i thought of, should help clear up the forums abit and aid some noobs... might be useful to put in SetupSRL; else just call it at the start of the main loop
{************************************************* ******************************
procedure CheckSRL(Current:string);
By: mat_de_b
Description:
(Currently "CheckSRL('4.00');")
Checks for the current version of SRL and
if it isnt current will kill the script and open
the download section of SRL
************************************************** *****************************}
procedure CheckSRL(Current:string); // Currently 4.00
begin
if not(SRLVersionNumber = Current)then
begin
Writeln('/////////////////////////////////////////////////////////////');
Writeln('/////////////////////////////////////////////////////////////');
Writeln('');
Writeln('INCORRECT VERSION OF SRL');
Writeln('You have v '+SRLVersionNumber);
Writeln('Please Download SRL '+Current+' from');
Writeln('http://www.srl-forums.com/forum/download-srl-here-f145.html');
Writeln('');
Writeln('/////////////////////////////////////////////////////////////');
OpenWebPage('http://www.srl-forums.com/forum/download-srl-here-f145.html');
TerminateScript;
end;
end;
{************************************************* ******************************
procedure CheckSRL(Current:string);
By: mat_de_b
Description:
(Currently "CheckSRL('4.00');")
Checks for the current version of SRL and
if it isnt current will kill the script and open
the download section of SRL
************************************************** *****************************}
procedure CheckSRL(Current:string); // Currently 4.00
begin
if not(SRLVersionNumber = Current)then
begin
Writeln('/////////////////////////////////////////////////////////////');
Writeln('/////////////////////////////////////////////////////////////');
Writeln('');
Writeln('INCORRECT VERSION OF SRL');
Writeln('You have v '+SRLVersionNumber);
Writeln('Please Download SRL '+Current+' from');
Writeln('http://www.srl-forums.com/forum/download-srl-here-f145.html');
Writeln('');
Writeln('/////////////////////////////////////////////////////////////');
OpenWebPage('http://www.srl-forums.com/forum/download-srl-here-f145.html');
TerminateScript;
end;
end;