Jump to content
Sign in to follow this  
ecstatic

I dont understand why im getting a syntax error

Recommended Posts

ecstatic

C:\Documents and Settings\admin\Desktop\D2 Infinity\D2 Insanity.au3(156,2) : ERROR: syntax error
    Func
    ^

Is the error i get.

This is my code

; -----------------------------------------------------------------------
; Start Diablo II
; -----------------------------------------------------------------------
    Func StartDiablo()

    If StringRight($D2Path, 1) = "\" Then
        $D2FullPath = $D2Path & $D2File & " -w -ns -skiptobnet -res800 " & $D2Params
    Else
        $D2FullPath = $D2Path & "\" & $D2File & " -w -ns -skiptobnet  -res800 " & $D2Params
    EndIf

    Run($D2FullPath, $D2Path)

    For $x1 = 0 To 29
        If WinExists("Diablo II") = 1 Then
            ExitLoop
        EndIf
        Sleep(1000)
    Next

    Sleep($StartDelay)

    WinMove("Diablo II", "", 0, 0)
    WinActivate("Diablo II")
    AdlibEnable("CheckD2")
    Login()
EndFunc

Everything there is declared. O.o PORQUEEEEE!!!!

Share this post


Link to post
Share on other sites
exodius

Everything there looks fine... So the problem exists in the rest of your code, prior to the posted code.

Edited by exodius

Share this post


Link to post
Share on other sites
Authenticity

Can you post the rest of the script? It's not sufficient enough to spot the syntax error.

By the way:

For $x1 = 0 To 29
        If WinExists("Diablo II") = 1 Then
            ExitLoop
        EndIf
        Sleep(1000)
NextoÝ÷ ÙƧmêÞ¸­µéí+0k'è­·­µêܡاËrèZn+Z¶W²Ø§*)x¨«­¢+Ù¥´ÀÌØí¥]¥Ñ±äôÌÀÀÀÀìÌÀͽ¹Ì¸M¼å½Ôݽ¸ÌäíÐÉÕ¸¥¹Ñ¼¸¥¹¥¹¥Ñ±½½À͸)¥´ÀÌØí¥%¹¥ÐôQ¥µÉ%¹¥Ð ¤()¼(%M±À ÈÀÀ¤)U¹Ñ¥°9½Ð]¥¹á¥ÍÑÌ ÅÕ½Ðí¥±¼%$ÅÕ½Ðì¤=ÈQ¥µÉ¥ ÀÌØí¥%¹¥Ð¤ÐìÀÌØí¥]¥Ñ±ä

Share this post


Link to post
Share on other sites
Quual

Usually when I get a error that doesn't show the point in the line where the error occurred, its because of a missing EndFunc statement in a previous section of the script.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.