SA-MP Forums Archive
Uncontrolable textdraw clicking - 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: Uncontrolable textdraw clicking (/showthread.php?tid=554446)



Uncontrolable textdraw clicking - jeffery30162 - 03.01.2015

After I click the textdraw it runs the code i have in it then all the sudden it starts clicking another textdraw that I do not have shown uncontrollably and I am unable to stop it.



Please help me


Re: Uncontrolable textdraw clicking - jeffery30162 - 03.01.2015

help please


Re: Uncontrolable textdraw clicking - ball - 03.01.2015

I had this problem too, but I solved it. Make player variable for it

Код:
new playaClicked[MAX_PLAYERS];

//when you use SelectTextDraw
playaClicked[playerid] = 0;

//when click, OnPlayerClickTextDraw
if(playaClicked[playerid]) return 1;

playaClicked[playerid] = 1;