Jump to content

Recommended Posts

Posted

;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?

Posted (edited)

use this :

$TrayNumberOfFilesDonwloaded = $TrayNumberOfFilesDonwloaded +1
; or more simple
$TrayNumberOfFilesDonwloaded += 1

Regards

EDIT: sorry. din't see the post above!

Edited by newbiescripter

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...