|
Post by mickey on May 8, 2017 0:19:55 GMT
Hello, I was wondering if I could get another set of eyes on a for error I'm experiencing. I've played around with the parenthesis but can't seem to find the solution. Syntax error: Tester.lua:50: '(' expected near 'for' Here is that line of code: for cntr1=1, 5 do click(Location(150, 270)) click(Location(150, 270)) if Region(210, 40, 160, 30):exists(Pattern("3-DailyEnhance.png"), 30) then break else if cntr1==5 then return 0 end end end
|
|
|
Post by Mercobots on May 8, 2017 2:08:54 GMT
Hello, I was wondering if I could get another set of eyes on a for error I'm experiencing. I've played around with the parenthesis but can't seem to find the solution. Syntax error: Tester.lua:50: '(' expected near 'for' Here is that line of code: for cntr1=1, 5 do click(Location(150, 270)) click(Location(150, 270)) if Region(210, 40, 160, 30):exists(Pattern("3-DailyEnhance.png"), 30) then break else if cntr1==5 then return 0 end end end hi your elseif must be one word for cntr1 = 1, 5 do click(Location(150, 270)) click(Location(150, 270))
if Region(210, 40, 160, 30):exists(Pattern("3-DailyEnhance.png"), 30) then break elseif cntr1 == 5 then return 0 end end
|
|