0 Members and 1 Guest are viewing this topic.
procedure LoadMapData(Filename: string);var i,j,k: integer; Line,Semi,Data: TStringArray;begin Line := Split(ReadFile(Filename),Chr(13) + Chr(10)); for i := 0 to ArrayHigh(Line) - 1 do begin Semi := Split(Line[i],';'); for j := 1 to ArrayHigh(Semi) do begin Data := Split(Semi[j],',');Command('/say ' + InttoStr(i) + ',' + InttoStr(j) + ',' + Data[0]); end; end;end;
Airpirates;70,244,-745,-1190;0,0,0,0;0,0,0,0;0,0,0,0Arena3;0,0,0,0;0,0,0,0;0,0,0,0;0,0,0,0Bigfalls;0,0,0,0;0,0,0,0;0,0,0,0;0,0,0,0Bridge;0,0,0,0;0,0,0,0;0,0,0,0;0,0,0,0Factory;0,0,0,0;0,0,0,0;0,0,0,0;0,0,0,0Island2k5;0,0,0,0;0,0,0,0;0,0,0,0;0,0,0,0Jungle;0,0,0,0;0,0,0,0;0,0,0,0;0,0,0,0RatCave;0,0,0,0;0,0,0,0;0,0,0,0;0,0,0,0Rok;0,0,0,0;0,0,0,0;0,0,0,0;0,0,0,0
procedure LoadMapData(Filename: string);var i,j,k: integer; Line,Semi,Data: TStringArray;begin Line := Split(ReadFile(Filename),Chr(13) + Chr(10)); for i := 0 to ArrayHigh(Line) - 1 do begin SetArrayLength(Semi, 0); Semi := Split(Line[i],';'); for j := 1 to ArrayHigh(Semi) do begin SetArrayLength(Data, 0); Data := Split(Semi[j],','); Command('/say ' + InttoStr(i) + ',' + InttoStr(j) + ',' + Data[0]); end; end;end;