Участник
Покинул форум
Сообщений всего: 67
Дата рег-ции: Апр. 2019
Репутация: 1
|
Kibor пишет: Скобки {} проверьте.
Да вроде все на месте:
Цитата: function srnsob()
{
m_KIB2: getlocaltime(Year, Month, DayOfWeek, Day, Hour, Minute, Second, Milliseconds);
if (((DayOfWeek == 2 || DayOfWeek == 4) && (Hour >= formatsn(text_edit0[8]))) || ((DayOfWeek == 3 || DayOfWeek == 5) && (Hour < formatsn(text_edit0[8]))) goto m_KIB3;
else goto m_KIB14;
m_KIB3: if (findimage_(#Image_0_KIB[0][0], 3000, 0, 0, 0, 0, 0, -1, 0, 0, 500, -1, -1, -1, 20, 90, 1, 260, 185, 307, 224, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB5;
else goto m_KIB16;
m_KIB5: findimage_(#Image_1_KIB[0][0], 1000, 0, 0, 0, 0, 0, -1, 0, 0, 0, -1, -1, -1, 30, 80, -1, 0, 96, 45, 308, #sum_KIB, #xrode[0], #yrode[0]);
hero=5-sum_KIB;
textout (1, w_KIB.leftclient+10, w_KIB.topclient+10, "используется "+format(hero)+" героев",1);
pause(300);
mhero=5;
if (hero<mhero) goto m_KIB10;
else goto m_KIB2;
m_KIB10: findimage_(#Image_4_KIB[0][0], 3000, 0, 0, 1, 0, 0, -1, 0, 0, 0, -1, -1, -1, 30, 90, 1, 798, 258, 846, 320, #sum_KIB, #x_KIB, #y_KIB);
поиск();
pause(900);
if (findimage_(#Image_11_KIB[0][0], 900, 0, 0, 0, 0, 0, -1, 0, 0, 500, -1, -1, -1, 30, 80, 1, 412, 221, 557, 264, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB17;
else goto m_KIB15;
m_KIB17: if (rudn > 3)
{
rudn--;
}
else
{
rudn=5;
}
пивыборрудника();
pause(3000);
goto m_KIB2;
m_KIB1: pause(3000);
goto m_KIB2;
m_KIB11: pause(1000);
goto m_KIB3;
m_KIB7: mouse_(0, 1, 778, 241, 500); goto m_KIB1;
m_KIB13: if (findimage_(#Image_5_KIB[0][0], 500, 0, 0, 0, 0, 0, -1, 0, 0, 0, -1, -1, -1, 30, 80, 1, 272, 142, 602, 387, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB7;
else goto m_KIB8;
m_KIB8: findimage_(#Image_2_KIB[0][0], 3000, 0, 0, 1, 0, 0, -1, 0, 0, 0, -1, -1, -1, 20, 90, 1, 706, 285, 856, 482, #sum_KIB, #x_KIB, #y_KIB); goto m_KIB9;
m_KIB15: if (findimage_(#Image_6_KIB[0][0], 3500, 0, 100, 1, 0, 0, -1, 0, 0, 500, -1, 1, -1, 30, 60, 1, 449, 262, 493, 307, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB13; else goto m_KIB10;
m_KIB16: mouse_(10, 1, 23+rand(0, 5), 204+rand(0, 5), 500); goto m_KIB11;
m_KIB9: if (findimage_(#Image_3_KIB[0][0], 1500, 0, 0, 0, 0, 0, -1, 0, 0, 500, -1, -1, -1, 30, 80, 1, 337, 162, 537, 259, #sum_KIB, #x_KIB, #y_KIB)>0) goto m_KIB7;
else goto m_KIB2;
m_KIB14:;
}
|