how to update a texdraws status?
#1

hello. so im about to begin work on a hunger nd thirst system. I've already created the variables, and texdraws. but i need to know how to update it. would i make a timer and then use settextdrawstring?

sent from phone. sorry for not being clear enough.
Reply
#2

Yes

Make A timer or put in OnplayerUpdate ( not recommended )
And use TextDrawSetString
Reply
#3

Quote:
Originally Posted by mahardika
Посмотреть сообщение
Yes

Make A timer or put in OnplayerUpdate ( not recommended )
And use TextDrawSetString
Why would you even consider using OnPlayerUpdate? OPU is NOT an alternative to timers. It should only be used if it has to be used. Besides, for his purpose the textdraw would likely not update more than once a minute, so why waste ~1800 OPU calls doing nothing?
Reply
#4

Yes , MP2 is right
we can use timers like for each 10 sec or no each 5sec but LooooooooL each 1milisec is really bad for server
and for players it will send a lot of lag to server

hey rangerxxll
use a timer and in timer use SetTextDrawString
Reply
#5

Already got the base set up. If you gentlemen get the time, please read this help topic regarding showing a textdraw. Would be appreciated.

https://sampforum.blast.hk/showthread.php?tid=498992
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)