Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro doesn`t work fine if rep used
#2
Quote:
Code:
Copy      Help
;here comes rep 200

act w2

'Amw


,
,czx = 0
,czy = 0
,cdox = 0
,cdoy = 0


,
,,for i 0 12
,,,if(scan(crafty[i] w2 0 1)) break ;;scan returns 1 if found, or 0 if not found
,,,if(i=13) out "not found crafty"
,POINT p
,,x = xm(p "Crafty-19.19" )
,,y = ym(p "Crafty-19.19" )

Please post the code full and normally formatted. Now you use tabs where not needed, and it makes the code hard to understand.

Use tabs only in code blocks that follow flow-control keywords: rep, for, foreach, if, ifa, ifi, ifk, iff, else, sel, err.



if(i=13) out "not found crafty"

replace to

if(i=12) out "not found crafty"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)