Sign in to follow this  
Followers 0
Luxury

What's wrong?

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



Hi and welcome to the forum!

Start by posting the console output from SciTE and/or a small runnable reproducer. We are no mindreaders and can't help you unless you show us something.

Share this post


Link to post
Share on other sites

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

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  
Followers 0