Simba Code:
function CurrentMap(maps: TStringArray): String;
var
TempMap: TStringArray;
i: Integer;
begin
for i := 0 to length(maps)-1 do
begin
SetLength(TempMap, 1);
TempMap[1] := maps[i];
SPS_Setup(3, TempMap);
if(SPS_GetMyPos <> Point(-1, -1)) then
begin
result := TempMap[1];
Exit;
end;
end;
end;
Put that in your script with the other functions, then when put somewhere in your script:
Simba Code:
WriteLn(CurrentMap(['2_3', '4_4', '3_293']));//put whatever maps you are checking
See if it gets the right one