Dracody
2009-02-14 15:37:55
Well This works fine for me :)
{*******************************************************************************
Procedure LoadSmart2;
by: Dracody
Description: Loads smart world by looking at the prefix and parameters
at worlds.ini.
*******************************************************************************}
const
worldNumber = 68;
procedure LoadSmart2;
var
prefix: string;
url : Array of String;
begin
begin
begin
prefix := ReadINI('world' + IntToStr(worldnumber), 'Prefix', AppPath + 'includes\SRL\SCSS\worlds.ini');
url := strToStrArrayEx(ReadINI('world' + IntToStr(worldnumber), 'URL', AppPath + 'includes\SRL\SCSS\worlds.ini'), '/');
if(prefix = '')then
begin
writeln('Invalid world number or corrupted world list. Please review your settings');
TerminateScript;
end;
writeLn('Loading SMART.... Hang on.')
SmartSetup(url[0]+'//'+url[2]+'/', 'plugin.js?param=' + url[3]);
end;
end;
end;