SA-MP Forums Archive
Clickable textdraws not responding - 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: Clickable textdraws not responding (/showthread.php?tid=531412)



Clickable textdraws not responding - wooolly - 12.08.2014

I have some textdraws, which you can click on and it does stuff. It was working perfectly for a while, but then i started working on something else in my server, and now my textdraws aren't working.

I can still hover over the TextDraws and they change to the colour you specified in SelectTextDraw, so i know they are selectable because they change to the hover over colour, but when i click, it does nothing. I added a print() at the beginning of OnPlayerClickTextDraw and it didn't print out the message, so I've come to the conclusion that my textdraws aren't calling OnPlayerClickTextDraw correctly. But I don't know why this is, it was working fine before hand.

The time i noticed it was broken, i was working on a totally unrelated part of the server using INI files. The majority of the code i was working on at the time was in a seperate filterscript, and i included <YSI\y_ini> into my gamemode and filterscript. But I don't see why y_ini would break Clickable textdraws?
Thats the only major difference I made to the gamemode, that and some additional code not relating to textdraws.


Re: Clickable textdraws not responding - Faisal_khan - 12.08.2014

Check any of your FSs that use OnPlayerClickTextDraw and it is returning 1. Returning 1 means, that it won't get called on any other script.


Re: Clickable textdraws not responding - wooolly - 12.08.2014

I only have OnPlayerClickTextDraw in my gamemode


Re: Clickable textdraws not responding - Faisal_khan - 12.08.2014

Try commenting out the ini codes and remove the includes. Whenever faced such problems go to reverse mode. Undo your work.


Re: Clickable textdraws not responding - wooolly - 13.08.2014

I commented stuff out like you said, and the problem does seem to be Y_ini. I commented everything out relating to y_ini and TextDraws work fine as before. Why would y_ini break my textdraws :O? And how can I get around this? I need y_ini for INI file writing (of course :P)

EDIT---------=-=--------------------=-=---------------
Problem fixed!


Re: Clickable textdraws not responding - Faisal_khan - 13.08.2014

I would be glad if you let me know how you fixed it.


Re: Clickable textdraws not responding - ikkentim - 13.08.2014

edit: this message was completely pointless and next time I should read the original post better before posting.