If anyone could help me figure out a way that this would work or possibly another way around this, it would be greatly appreciated. hopefully another pair of eyes could see if i made a small mistake or not.
Code: Select all
Sub chktarg
/varset l0 0
/for l0 0 to $arraysize
[b]/if n $target(id)==a(0,$l0) {[/b]
/call chkdbuff $l0
/return
}
/next l0
/call addtarg $calc($l0-1)
/return
Sub addtarg
/varset a(0,$p0) $target(id)
/varset a(1,$p0) 0
/varset a(2,$p0) 0
/varadd arraysize 1
/return


