Jump to content
Sign in to follow this  
sumkid

Quick Problem

Recommended Posts

sumkid

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?

Share this post


Link to post
Share on other sites
TehWhale

$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

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.