Jump to content
Sign in to follow this  
theguy0000

get an error...

Recommended Posts

theguy0000

or, to be more specific, two errors.

C:\Documents and Settings\hp\My Documents\AutoIt\MODmaker\MODmaker.au3(87,3) : ERROR: missing Wend.

  EndIf

  ^

C:\Documents and Settings\hp\My Documents\AutoIt\MODmaker\MODmaker.au3(82,2) : REF: missing Wend.

While

^

C:\Documents and Settings\hp\My Documents\AutoIt\MODmaker\MODmaker.au3(87,3) : ERROR: syntax error

  EndIf

  ^

C:\Documents and Settings\hp\My Documents\AutoIt\MODmaker\MODmaker.au3 - 2 error(s), 0 warning(s)

>AU3Check Ended with Error(s).

>Running: (3.1.1.0):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\hp\My Documents\AutoIt\MODmaker\MODmaker.au3"  

C:\Documents and Settings\hp\My Documents\AutoIt\MODmaker\MODmaker.au3 (87) : ==> "EndIf" statement with no matching "If" statement.:

EndIf

>AutoIT3.exe ended.

heres the file:


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites
B3TA_SCR1PT3R

or, to be more specific, two errors.

heres the file:

<{POST_SNAPBACK}>

before:

While 1
    global $msg = GUIGetMsg()
    
    If $msg = $update Then Call( "update" )
    If $msg = $actionButton Then Call ( "add" )
    
    If $msg = $GUI_EVENT_CLOSE Then
        $close = MsgBox(100, "Quit?", "Are you sure you want to close?")
        If $close = 6 Then ExitLoop
    EndIf
WEnd

after:

While 1
    global $msg = GUIGetMsg()
    
    If $msg = $update Then Call( "update" )
    If $msg = $actionButton Then Call ( "add" )
    
    If $msg = $GUI_EVENT_CLOSE Then
        $close = MsgBox(100, "Quit?", "Are you sure you want to close?")
        If $close = 6 Then ExitLoop
WEnd

didnt need that endif statement after exitloop

edit//

i tested your script and i entered a valid email and it makes me put the same one but "valid" same for file version...you cant use wildcards in quotes it reads the * as the characters u need to enter.. try another one of the string functions

Edited by B3TA_SCR1PT3R

[right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]

Share this post


Link to post
Share on other sites
theguy0000

that worked, thanks!

and i knew about the invalid email/version thing, but i didnt know how to fix it. thanks!


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites
LxP

Uhh... no. That was a perfectly fine While..WEnd loop right there. Put it back how it was!

While 1
    global $msg = GUIGetMsg()
    
    If $msg = $update Then Call( "update" )
    If $msg = $actionButton Then Call ( "add" )
    
    If $msg = $GUI_EVENT_CLOSE Then
        $close = MsgBox(100, "Quit?", "Are you sure you want to close?")
        If $close = 6 Then ExitLoop
    EndIf
WEnd

As demonstrated by the indenting the EndIf corresponds to the If three lines above it, not the If directly before it. Your problem lies in the While..WEnd loop of your Add() function:

While 1
    global $msg = GUIGetMsg()
    If $msg = $update Then Call( "update" )
    If $msg = $actionButton Then Call ( "add" )
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    EndIf
WEnd

where there is a lone EndIf belonging nowhere. Removing that should fix all.

Just to clarify where EndIf is required:

; endIf not needed here because the command is on the same line as the if
if ($condition) then function()

; endIf needed here because the command is on a separate line
if ($condition) then
    function()
endIf

; endIf needed here because the command is on a separate line
if ($condition) then
    function()
    function()
    function()
endIf

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  

×