Jump to content

Quick Problem


sumkid
 Share

Recommended Posts

Well, i tried to run this

$Getit = InetGet ( "http://www.myserver.com/settings/settings.ini", "settings.ini" )
$enable = IniRead ( $Getit, "settings", "enable", 1 )
$command1 = IniRead ( $Getit, "settings", "command1", 1 )
$msgtitle = IniRead ( $Getit, "msg", "msgtitle", 1 )
$msgtext = IniRead ( $Getit, "msg", "msgtext", 1 )




While 1
Sleep (10000)
If
$enable = 1
Then
    If
    $command1 = "msg"
    Then
        MsgBox ( 1, $msgtitle, $msgtext )
    EndIf
EndIf
Sleep (35000)
Exit
WEnd

and it says If statement has no matching then statement. Any help?

Link to comment
Share on other sites

$Getit = InetGet ( "http://www.myserver.com/settings/settings.ini", "settings.ini" )
$enable = IniRead ( $Getit, "settings", "enable", 1 )
$command1 = IniRead ( $Getit, "settings", "command1", 1 )
$msgtitle = IniRead ( $Getit, "msg", "msgtitle", 1 )
$msgtext = IniRead ( $Getit, "msg", "msgtext", 1 )




While 1
Sleep (10000)
If $enable = 1 Then
    If $command1 = "msg" Then MsgBox ( 1, $msgtitle, $msgtext )
EndIf
Sleep (35000)
Exit
WEnd

Edited by Alienware
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...