Jump to content

Recommended Posts

Posted

Hi, I seem to have this problem with this line:

$Square[0] = PixelGetColor(170,194)

When I run the script, I get this error: Expected a "=" operator in assignment statement.

First of all does the PixelGetColor return the color code as a string?

I also have this in my code but it doesn't return an error:

If $Square[0] = 16640114 Then
        $Color[0] = True
    EndIf

Thanks in advance,

Luxury.

Posted

You didn't declare $Square[0] before trying to use it in that line.

Yeah you're right, I imported this portion from another script of mine but I did not import the declarations, what a

stupid mistake. :D

*facepalm*

Thanks guys..

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
×
×
  • Create New...