TextDrawCreateTimer? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: TextDrawCreateTimer? (
/showthread.php?tid=69003)
TextDrawCreateTimer? -
Dujma - 15.03.2009
What is this? I found this on wiki and I searched forum and no results came up. Does anyone use this and what does it do?
https://sampwiki.blast.hk/wiki/TextDrawCreateTimer
Re: TextDrawCreateTimer? -
Think - 15.03.2009
Quote:
Originally Posted by Dujma
|
i guess it created a textdraw for an amount of time eh?
Re: TextDrawCreateTimer? -
Betamaster - 15.03.2009
It looks like a custom function. I couldn't find the source for it either, but it's probably something like this:
pawn Код:
forward HideTextDraw(textdraw);
public HideTextDraw(textdraw) {
TextDrawHideForAll(Text:textdraw);
}
Text:TextDrawCreateTimer(Float:x, Float:y, text[], displaytime); {
if(!text[0] || displaytime < 1) return Text:INVALID_TEXT_DRAW;
new Text:textdraw = TextDrawCreate(x, y, text);
TextDrawShowForAll(textdraw);
SetTimerEx("HideTextDraw", displaytime, false, "i", _:textdraw);
return textdraw;
}
Re: TextDrawCreateTimer? -
Think - 15.03.2009
Creates a text draw area in memory (does not display to the screen), which will be destroyed after a certain time.
Re: TextDrawCreateTimer? -
Betamaster - 15.03.2009
If the text draw is being destroyed without the function displaying the text draw, then the function is .... useless.
Re: TextDrawCreateTimer? -
Weirdosport - 15.03.2009
It's part of the useful functions package, which can be found
here.
Re: TextDrawCreateTimer? -
Betamaster - 15.03.2009
Ok, I looked at the function in the useful functions include and unfortunately, as previously predicted, the function (and related functions) are useless.
Re: TextDrawCreateTimer? -
Dujma - 15.03.2009
Quote:
Originally Posted by Betamaster
If the text draw is being destroyed without the function displaying the text draw, then the function is .... useless.
|
Yea I read that and I was like "Why is this function even here if it does not displays and it gets destroyed" so I just asked here xD
Re: TextDrawCreateTimer? -
Kinetic - 15.03.2009
I assume it is just like GameTextForPlayer or GameTextForAll but using Text Draws... But my guess is as good as yours, Im not really that interested in it to try it.