Textdraw disappearing
#1

SOLVED-
Reply
#2

Most likely because the code in the loop does not fit the conditions of "fps2 > 1 && fps2 < 100 && fps2 > -1050" therefore the array "str" does not contain anything and TextDrawSetString is called with an empty string. I do not know what method you use to determine the player's FPS, so I cannot help you too much about that.

However I can help you fix your loop which is not the best at the moment.
1. a clever GetPlayerState check eliminates the need for a IsPlayerConnected check.
2. set the textdraw string only if the conditionals above are met.
Reply
#3

You've just made my brain move.
if(fps2 > 1 && fps2 < 100 && fps2 > -1050)

That's the issue since the get-FPS method isn't 100% reliable, thanks!
I found out that I actually don't need the whole check because one is below. It's like my brain was totally paused when I was scripting that.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)