CODE:
int rt[100][100], rt2[100][100], rt3[100][100], PosX, PosY;
loadimage (#rt[0][0], "C:\moe\oo.bmp");loadimage (#rt2[0][0], "C:\moe\qq.bmp");loadimage (#rt3[0][0], "C:\moe\nn.bmp");
a: if (findimage(1, #rt[0][0], 0, #PosX, #PosY, 0, 0, 1380, 772, -1)==1)
{
mouse(LEFT, PosX, PosY);
sleep (1000);
if (findimage(1, #rt2[0][0], 0, #PosX, #PosY, 0, 0, 1380, 772, -1)==1)
{
mouse(LEFT, PosX, PosY);
sleep (100);
}
}
sleep(5000);
else (findimage(1, #rt3[0][0], 0, #PosX, #PosY, 0, 0, 1380, 772, -1)==1)
{
mouse(LEFT, PosX, PosY);
sleep (100);
}
}
sleep(25);
goto a;
loadimage (#rt[0][0], "C:\moe\oo.bmp");loadimage (#rt2[0][0], "C:\moe\qq.bmp");loadimage (#rt3[0][0], "C:\moe\nn.bmp");
a: if (findimage(1, #rt[0][0], 0, #PosX, #PosY, 0, 0, 1380, 772, -1)==1)
{
mouse(LEFT, PosX, PosY);
sleep (1000);
if (findimage(1, #rt2[0][0], 0, #PosX, #PosY, 0, 0, 1380, 772, -1)==1)
{
mouse(LEFT, PosX, PosY);
sleep (100);
}
}
sleep(5000);
else (findimage(1, #rt3[0][0], 0, #PosX, #PosY, 0, 0, 1380, 772, -1)==1)
{
mouse(LEFT, PosX, PosY);
sleep (100);
}
}
sleep(25);
goto a;
вылетает ошибка else.Подскажите как правильно записать