Для более полного понимания ситуэйшен, вот более полная подпрограмма:
SUB(PICTURE, $picture, $currency)
IF(STRCONCAT("$",$picture) > 0) // Попадала эта картинка в эту подпрограмму, или нет.
$x1=INIREAD ("picture.ini", "x1", $picture)
$y1=INIREAD ("picture.ini", "y1", $picture)
$x2=INIREAD ("picture.ini", "x2", $picture)
$y2=INIREAD ("picture.ini", "y2", $picture)
IF_PICTURE_IN ($x1,$y1, $x2,$y2, STRCONCAT("skrini\",$picture,".bmp"), -1, $currency)
LOGWRITE (STRCONCAT("PICTURE: ",$picture," Найдена!"))
$pic=1
else
LOGWRITE (STRCONCAT("PICTURE: ",$picture," Не найдена..."))
$pic=0
END_IF
else
IF_PICTURE_IN (0,0, $_xmax,$_ymax, STRCONCAT("skrini\",$picture,".bmp"), -1, $currency)
LOGWRITE (STRCONCAT("PICTURE: ",$picture," Найдена!"))
STRCONCAT("$",$picture)=1
INIWRITE ("picture.ini", "x1", $_return1, $picture)
INIWRITE ("picture.ini", "y1", $_return2, $picture)
INIWRITE ("picture.ini", "x2", ($_return1+INIREAD ("picture.ini", "shirina", $picture)), $picture)
INIWRITE ("picture.ini", "y2", ($_return2+INIREAD ("picture.ini", "visota", $picture)), $picture)
$pic=1
else
LOGWRITE (STRCONCAT("PICTURE: ",$picture," Не найдена..."))
$pic=0
END_IF
END_IF
END_SUB
GETSCREEN
COLORMODE(6)
PICTURE ("Типа картинка", 100)
IF($pic>0)
else
END_IF