Вылетил скрипт с ошибкой ==> Recursion level has been exceeded - AutoIt will quit to prevent stack overflow.:
и указывает вот на строку FindComboHit(). Разве тут может быть рекурсия?
Заранее спасибо.
и указывает вот на строку FindComboHit(). Разве тут может быть рекурсия?
Код:
Func Fight_Check_new()
$mm = PixelGetColor (570, 498)
if $mm = 15847510 then
If $ComboCounter = $ComboCounterHit Then
If $ComboCounterHit = 4 Then
HitCombo4()
Else
HitCombo8()
EndIf
Else
If $RandomHit = True Then
Call("Udar" & Random(1, 3, 1) )
Else
FindComboHit()
EndIf
EndIf
Else
Sleep (1000)
Win_Check()
EndIf
EndFunc
Func FindComboHit()
$ForwardHit = PixelGetColor(859, 508)
if $ForwardHit = 4791042 Then
Udar3()
Else
$LeftHit = PixelGetColor(421, 508)
If $LeftHit = 4791042 Then
Udar1()
Else
Udar2()
EndIf
EndIf
EndFunc
Заранее спасибо.