Bug with CancelSelectTextDraw - 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 with CancelSelectTextDraw (
/showthread.php?tid=339989)
Bug with CancelSelectTextDraw -
Emci_Funtik - 05.05.2012
When I use CancelSelectTextDraw, it call OnPlayerClickTextDraw again with the same clickedid.
Re: Bug with CancelSelectTextDraw -
Hiddos - 05.05.2012
Ye, CancelSelectTextdraw calls OnPlayerClickTextDraw with texdrawid INVALID_TEXT_DRAW (65535).
Can be fixed like this:
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(_:clickedid == INVALID_TEXT_DRAW) return;
// your code
CancelSelectTextDraw(playerid);
return 1;
}
Made a thread about this earlier, but obviously the mods deleted it.
Re: Bug with CancelSelectTextDraw -
dugi - 05.05.2012
It's still there but for some reason posts from this section don't show up in your profile:
https://sampforum.blast.hk/showthread.php?tid=328257
Re: Bug with CancelSelectTextDraw -
Emci_Funtik - 06.05.2012
Thanks