Bug in OnPlayerClickTextdraw
#1

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!
Reply
#2

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?
Reply
#3

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.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)