Jump to content

Problem with a variable


Recommended Posts

;Files Check
$TrayNumberOfFilesDonwloaded = 0
If FileExists("data\"&"FILE1.exe") = False Then
    InetGet("MyWebsite.com/FILE1.exe","data\FILE1.exe",1,1)
    While @InetGetActive
        $TrayTip = TrayTip("Some files are missing", "Downloading, please wait", 15)
    WEnd
    $TrayNumberOfFilesDonwloaded +1
EndIf

If FileExists("data\"&"FILE2.exe") = False Then
    InetGet("MyWebsite.com/FILE2.exe","data\FILE2.exe",1,1)
    While @InetGetActive
        $TrayTip = TrayTip("Some files are missing", "Downloading, please wait", 15)
    WEnd
    $TrayNumberOfFilesDonwloaded +1
EndIf

If $TrayNumberOfFilesDonwloaded = Not 0 Then
$TrayTip = TrayTip("Finished downloading!", "Downloaded "&$TrayNumberOfFilesDonwloaded&" files", 2,1)
EndIf

My problem is with $TrayNumberOfFilesDonwloaded...

When I run the script it errors me with the message: "Expected a "=" operator in assignment statement"

Help?

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...