You're calling it twice. Mousehit tells you the first time the mouse button is pressed down. Calling it resets the value of the mousehit. To use it more than once in a loop you should assign the value to a variable then reference that.
dim mhit(3) repeat for i=1 to 3 mhit(i)=mousehit(i) next if mhit(2) ;do something end if until