SelectTextDraw - Fade cursor. HELP!
#1

Sory for my bad english. I use translate . (polish)

Hey! I have a problem with clickable textdraws. The problem is quite embarrassing because when I call the SelectTextDraw function after the form is welded, the cursor disappears automatically. The same situation happens when you press the TAB (player list), then the cursor flashes like crazy. The number of created textdraws is not exceeded. I have 490 global textdraws and 90 for the player. I do not know what the problem is, if it will be needed, will send the code.

Please help!
Reply
#2

I can't totally understand, All what I can say for you, Is to make a clickable textdraw, Create it first, and use OnPlayerClickTextDraw (for global textdraws) and OnPlayerClickPlayerTextDraw (for player textdraws) to have the response..
Reply
#3

I know it's hard to understand, but the simplest way to do this is to act as if OnPlayerUpdate was called CancelSelectTextDraw and CancelSelectObject because the same situation happens when you want to call SelectObject. The best part is that I restored the gamemods 7 days ago, but that was not the case, the same thing and I am sure that at that moment it certainly worked. I have no idea what's going on, I suspect plugins or includies, but I have not changed anything for a week. I also have crachdetecta, which does not show anything in the logs.

It just works as if every 10 milliseconds of me pressed ESC and called CancelSelectTextDraw / Object.
Reply
#4

OnPlayerUpdate is the problem then. OnPlayerUpdate is called every time your player moves. Therefore move it to some other callback or function. Like OnPlayerSpawn or when a command is input.
Reply
#5

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
OnPlayerUpdate is the problem then. OnPlayerUpdate is called every time your player moves. Therefore move it to some other callback or function. Like OnPlayerSpawn or when a command is input.
You misunderstood me, I gave only an example on what principle it works. I do not have the CancelSelectTextdraw / Object function called in OnPlayerUpdate. I gave an example of how it works, which works as if every 10 milliseconds was called the CancelSelectTextDraw / Object function.
Reply
#6

Problem repair
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)