function regF ()
if IsObjectExist ('mon')~=nil then
MessageBox (GetMapDataPath().."mes.txt");
else MessageBox (GetMapDataPath().."mes2.txt");
end;
end;
Trigger (REGION_ENTER_WITHOUT_STOP_TRIGGER, "reg", "regF");
не работает все-таки. пишет attempt to call a nil value