Array of string integers for population? Wait what are you trying to return on the winfo array? I see only 1 worldnum listed... so what information are you putting into the array?
also you know you can use
for i := 0 to 7 do
SCAR Code:
function WorldInfo(worldnum:Integer):Array of String;
var
winfo: array [0..7] of String; dataloader,raw,tempstr:String; i:Integer;
begin
dataloader:= GetPage('http://www.runescape.com/slj.ws?hires.x=36&hires.y=223&plugin=0')
raw:= Between('e('+inttostr(worldnum)+',',');',dataloader);
writeln(raw);
i:=0;
winfo[i]:=inttostr(worldnum);
for i := 0 to 7 do
begin
tempstr:=raw;
delete(tempstr, pos(',',raw), 50);
winfo[i]:=tempstr;
delete(raw, pos(',',raw)-Length(tempstr), 1+Length(tempstr));
end;
Result:= winfo;
end;
You saw this right?
SCAR Code:
urlsource := between('(m==0?"f>Free":"m>Members")+"</td>");','<div class="tandc">This',GetPage('http://www.runescape.com/slj.ws?order=WMLPA'));
population := strtoint(Between('",',',',Between('",',')', Between('e('+inttostr(world)+',', ';', urlsource))));