Luxury Posted June 11, 2009 Share Posted June 11, 2009 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 More sharing options...
AdmiralAlkex Posted June 11, 2009 Share Posted June 11, 2009 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. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Luxury Posted June 11, 2009 Author Share Posted June 11, 2009 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. *facepalm* Thanks guys.. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now