I fixed the problem, I had a function in there that I made myself but when I deleted it I forgot to get rid of the variables.
Thanks for all the help guys.
If $cp[0] < 300 And $cp[1] < 300 And $dead = False Then
If $cp[1] < 0 Then
ControlMove("","",$obj,$cp[0],$cp[1]+1)
ControlMove("","",$prog,$cp[0]-25,$cp[1]-20)
ControlMove($gui,"",$prog_b,$cp[0]-25,$cp[1]-20) ;This is the error, just delete "$prog_b"
Else
ControlMove("","",$obj,$cp[0],$cp[1]+1)
ControlMove("","",$prog,$cp[0]-10,$cp[1]-20)
EndIf
EndIf