Posts: 1,420
Threads: 65
Joined: Jan 2009
Reputation:
0
24.03.2012, 03:31
(
Последний раз редактировалось CyNiC; 06.04.2012 в 20:23.
)
Well, I made a system which contains menus with textdraws, when it was written using global textdraws, the callback OnPlayerClickTextDraw was called when the the server canceled him textdraw selection.
With per player textdraws it doesn't happens as it should, I need to know when the players leave the selectable mode by all ways possible.
My english is bad, then what I'm trying to say is: OnPlayerClickPlayerTextDraw isn't called when the server cancel your textdraw selection.
Posts: 167
Threads: 3
Joined: Dec 2011
Reputation:
0
Yes, OnPlayerClickTextDraw is called when he cancels the textdraw selection.
Posts: 1,420
Threads: 65
Joined: Jan 2009
Reputation:
0
By pressing Esc while selecting global textdraw the callback OnPlayerCLlickTextDraw is called holding an invalid text draw id(65535), but if you press Esc while selecting per-player textdraw the callback OnPlayerClickPlayerTextDraw is not called.
Posts: 3,304
Threads: 58
Joined: Sep 2008
Reputation:
0
When 'stopping' to select a textdraw of any kind - normal or player - OnPlayeClickTextDraw gets called (Not OnPlayerClickPlayerTextDraw) with INVALID_TEXT_ID
Posts: 1,420
Threads: 65
Joined: Jan 2009
Reputation:
0
Thanks for the info but it's stranger, everyone expects that it's being called by OnPlayerClickPlayerTextDraw.
Posts: 3,304
Threads: 58
Joined: Sep 2008
Reputation:
0
No, why would it?
If you're making a player select a textdraw, players can either click on player textdraws or normal textdraws, guaranteed they are selectable. SelectTextDraw is the only function, there is no SelectPlayerTextDraw or whatever.
Posts: 406
Threads: 16
Joined: Nov 2007
Reputation:
0
why not make it call both callbacks .... ?