SA-MP Forums Archive
updating textdraw - 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: updating textdraw (/showthread.php?tid=470464)



updating textdraw - xyzcod2 - 18.10.2013

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


Re: updating textdraw - iJumbo - 18.10.2013

https://sampwiki.blast.hk/wiki/TextDrawSetString


Re: updating textdraw - xyzcod2 - 18.10.2013

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?


Re: updating textdraw - iJumbo - 18.10.2013

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;
}



Re: updating textdraw - xyzcod2 - 18.10.2013

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


Re: updating textdraw - iJumbo - 18.10.2013

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


Re: updating textdraw - xyzcod2 - 18.10.2013

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


Re: updating textdraw - iJumbo - 18.10.2013

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