24K Posted October 26, 2013 Share Posted October 26, 2013 So im making a script but im running in the following error "Type mismatch": while FindBitmap(x, y, Bought, 0, 0, 1446, 750)=False and resetTimer < 30 do begin If anyone could tell me whats wrong id be more then gratefull. Quote Link to comment Share on other sites More sharing options...
FHannes Posted October 26, 2013 Share Posted October 26, 2013 while not FindBitmap(x, y, Bought, 0, 0, 1446, 750) and (resetTimer < 30) do Quote Link to comment Share on other sites More sharing options...
slacky Posted October 26, 2013 Share Posted October 26, 2013 Honestly I really would prefer: while not(FindBitmap(x, y, Bought, 0, 0, 1446, 750)) and (resetTimer < 30) do @24K: The point is simply to separate each "question"/check with parenthesis. If you don't do that, then the interpreter thinks it's a bitwise operation, in other words: not what you are after. Quote Link to comment Share on other sites More sharing options...
24K Posted November 4, 2013 Author Share Posted November 4, 2013 Thank you for the explenation. Quote Link to comment Share on other sites More sharing options...