Jump to content

Error 'Has no matching end FUNC'


 Share

Recommended Posts

For some reason, the func is getting the error it has no matching EndFunc. (When clearly, it does) any ideas?

Func Login()
If $mode = "a" then
MouseClick("left", 404,339)
MouseClick("left", 404,339)
Sleep(300)
ElseIf $mode = "d" then
MouseClick("left", 404,382)
MouseClick("left", 404,382)
$loginscreen = PixelGetColor(325,354)
While $loginscreen <> 1024
;6535902
    Sleep(100)
    $loginscreen = PixelGetColor(325,354)
    Wend
MouseClick("left", 483,364)
MouseClick("left", 483,364)
Send($a)
Sleep(600)
Send("{TAB}")
Sleep(500)
Send($p)
Sleep(600)
Send("{ENTER}")
endif
EndFunc
Link to comment
Share on other sites

Is this all the code? Even if the error is reported in this part of the code the reason might be elsewhere (above).

Link to comment
Share on other sites

This is not all the code, but it only happens when I call this func. I'm currently unable to post the rest of the code.

Fixed it, it was in another part, my mistake.

Edited by lolp1
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...