Jump to content

Recommended Posts

Posted

this thread im talking about: http://www.autoitscript.com/forum/index.php?showtopic=25690

i try to add new function to it:

if StringLeft($linecontent,5 ) = "joob(" Then
                Local $newstring, $new2
                $assign = StringSplit($linecontent,',',1)
                $newstring = StringReplace($assign[2],")","")
                $new2 = StringSplit($assign[1],"(",1)
                Assign($newstring,$new2)
                $variables[$i] = $newstring
            EndIf

and i enter this in the input box:

joob(2,$number)
print $number

and it says print $number

Syntax Error: Variable not declared

why??

btw i dont know if this is right place to post :S

Posted (edited)

The error tells you exactly whats wrong... The variable hasn't been declared.

Please do a little learning and searching before you jump in.

Somewhere before the code you posted, place this:

$number = "declared"

Look up variables in the autoit help file, and you will find an explanation of what variables are and how to use them. Good luck!

Edited by JRowe
Posted

I'm talking about the variable isn't being declared in razerM's uranium script poc...U read next time lol :) jokes.

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