Jump to content

What's wrong?


Recommended Posts

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.

Link to comment
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.

Link to comment
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..

Link to comment
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
 Share

  • Recently Browsing   0 members

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