SRL Archive - Jr. Member General Help and Discussion

Expected Operator Error


IROC-Z

2015-01-29 22:45:36

I am trying to compile my script that I have done thus far and I am getting a "Error: Expected Operator at line 182"
The code is this:
[ATTACH=CONFIG]24923[/ATTACH]

I added some if.. then.. else stuff to see if that was it and it's not working. I have the same code earlier and it compiled fine. Also, any advice on adding pics straight into the message and not as links? haha

Brandon

2015-01-29 22:51:25

From: IROC-Z
I am trying to compile my script that I have done thus far and I am getting a "Error: Expected Operator at line 182"
The code is this:
[ATTACH=CONFIG]24923[/ATTACH]

I added some if.. then.. else stuff to see if that was it and it's not working. I have the same code earlier and it compiled fine. Also, any advice on adding pics straight into the message and not as links? haha



You're missing a comma after "colourSetting". Also, colorSetting seems to be a function: https://github.com/SRL/SRL-6/blob/master/lib/utilities/color.simba#L49 So you need to decide whether or not that's a variable you're using or a function.


You probably meant to do:

if findColorsSpiralTolerance(X, Y, TPA, 3622231, mainScreen.getBounds(), 1, colorSetting(2, 0.12, 0.22)) then

OR:

if findColorsSpiralTolerance(X, Y, TPA, 3622231, mainScreen.getBounds(), 1, colorSetting, 2, 0.12, 0.22) then


ONE or the OTHER..

IROC-Z

2015-01-29 22:53:29

From: Brandon
You're missing a comma after "colourSetting".


Oh my gosh… Thank you! I was pulling my hair out. I did some stupid stuff like that in other places but figured it out. haha Thanks!