Error in Expression

  • Code:

    [autoit]


    Func wavehit()
    If $sWavehit = True Then
    Sleep(1)
    Else
    $sWavehit = True
    $mWavehit_x = $move_x - 2.25
    $mWavehit_y = $move_y - 2.1
    $iWavehit = GUICtrlCreatePic("./img/spells/wavehit.bmp", $move_x - 2.25, $move_y - 2.1, 25, 25)
    Sleep(1000)
    GUICtrlDelete($iWavehit)
    $sWavehit = False
    If $mWavehit_x < $hEnemy1max_x && > $hEnemy1min_x && $mWavehit_y > $hEnemy1min_y && $mWavehit_y < $hEnemy1max_y Then
    MsgBox(0, "", "HIT")
    EndIf
    EndIf
    EndFunc

    [/autoit]

    Fehlermeldung:

    Code
    >"S:\AutoIt\AutoItInstall\install\SciTe\..\autoit3.exe" /ErrorStdOut "S:\AutoIt\Yuna RPG\game.au3"	
    S:\AutoIt\Yuna RPG\game.au3 (73) : ==> Error in expression.:
    If $mWavehit_x < $hEnemy1max_x && > $hEnemy1min_x && $mWavehit_y > $hEnemy1min_y && $mWavehit_y < $hEnemy1max_y Then
    If ^ ERROR
    >Exit code: 1	Time: 6.902

    weis echt nicht woran das liegt...
    hilfe wär nett
    mfg Nakroma

    Einmal editiert, zuletzt von Nakroma (18. Oktober 2011 um 13:56) aus folgendem Grund: DANKE!