Jump to content
Sign in to follow this  
Info

Problem with a variable

Recommended Posts

Info

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

Share this post


Link to post
Share on other sites
rasim

Syntax errror $TrayNumberOfFilesDonwloaded +1.

This correct: $TrayNumberOfFilesDonwloaded += 1

Share this post


Link to post
Share on other sites
Info

WORKING! :(

THANKS! :)

BTW, what's syntax?

Share this post


Link to post
Share on other sites
newbiescripter

use this :

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

Regards

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

Edited by newbiescripter

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  

×