12.08.2014, 16:05
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.
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.