theguy0000 Posted August 24, 2005 Share Posted August 24, 2005 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 Link to comment Share on other sites More sharing options...
B3TA_SCR1PT3R Posted August 24, 2005 Share Posted August 24, 2005 (edited) 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 WEndafter: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 WEnddidnt need that endif statement after exitloopedit//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 August 24, 2005 by B3TA_SCR1PT3R [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right] Link to comment Share on other sites More sharing options...
theguy0000 Posted August 24, 2005 Author Share Posted August 24, 2005 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 Link to comment Share on other sites More sharing options...
LxP Posted August 24, 2005 Share Posted August 24, 2005 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 WEndAs 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 WEndwhere 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now