updating textdraw
#1

hey, how can i make my textdraw update it self?
Reply
#2

https://sampwiki.blast.hk/wiki/TextDrawSetString
Reply
#3

Quote:
Originally Posted by iJumbo
Посмотреть сообщение
i have that, but how can i make it update with timer? thats td updates it self for every 2 seconds?
Reply
#4

Yes but what do you want the td displays?


Anyway something like that:

pawn Код:
//InOnGamemodeInit
SetTimer("UpdateTextdraw",2000,true);

//A new function
forward UpdateTextdraw();
public UpdateTextdraw()
{
    TextDrawSetString(textdrawid, "Some message");  
    return 1;
}
Reply
#5

i want display player's zone. When he transfering zones textdraw update it. And i want update td of bank money on 1 second. Every 1 second its updated? HELP PLZ
Reply
#6

Just use TextDrawSetString when you need and format the message as the player bank money or zone name...
Reply
#7

OMG! U dont understand me! How can i do this with timer? That my textdraw will refresh every 2 seconds
Reply
#8

I just posted a example code ... i cant think how your code is made.. is up to you now fit it as you want
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)