how to update a texdraws status? - 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: how to update a texdraws status? (
/showthread.php?tid=498983)
how to update a texdraws status? -
rangerxxll - 06.03.2014
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.
Re: how to update a texdraws status? -
mahardika - 06.03.2014
Yes
Make A timer or put in OnplayerUpdate ( not recommended )
And use TextDrawSetString
Re: how to update a texdraws status? -
MP2 - 06.03.2014
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?
Re: how to update a texdraws status? -
amirab - 06.03.2014
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
Re: how to update a texdraws status? -
rangerxxll - 06.03.2014
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