SA-MP Forums Archive
Bug in OnPlayerClickTextdraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Bug in OnPlayerClickTextdraw (/showthread.php?tid=571771)



Bug in OnPlayerClickTextdraw - Q_Lite - 22.04.2015

Well, when i run my gamemode alone without any FS, it works fine, i am able to select textdraws and use ESC key.

But when i use a filterscript, i am able to hover the textdraws but the callback OnPlayerClickTextdraw is not called in the gamemode, i can't click them. I use YSI 3.1!

Help required!


Re: Bug in OnPlayerClickTextdraw - Threshold - 22.04.2015

So put OnPlayerClickTextDraw in your filterscript?

EDIT: Oh, now I understand. Do you have the callback in the filterscript? Where are the text draws created, game mode or filterscript?


Re: Bug in OnPlayerClickTextdraw - Q_Lite - 22.04.2015

Quote:
Originally Posted by Threshold
Посмотреть сообщение
So put OnPlayerClickTextDraw in your filterscript?

EDIT: Oh, now I understand. Do you have the callback in the filterscript? Where are the text draws created, game mode or filterscript?
No, i dont have the callback in the filterscript. But i use YSI 3.1 and i think its causing trouble; because when i load other filterscripts which don''t use YSI, they dont interfere.

The textdraws are created in gamemode.


Re: Bug in OnPlayerClickTextdraw - IstuntmanI - 22.04.2015

Try adding
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
    return 0;
in that filterscript, and then look if it is being called now in the gamemode.