12.10.2015, 11:19
You must not use CancelSelectTextDraw if the clickedid is INVALID_TEXT_DRAW, because CancelSelectTextDraw calls OnPlayerClickTextdraw again with INVALID_TEXT_DRAW, thus creating an infinite loop. This is also outlined on the wiki page: https://sampwiki.blast.hk/wiki/CancelSelectTextDraw