playertext vs 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: playertext vs textdraw (
/showthread.php?tid=408252)
playertext vs textdraw -
Glad2BeHere - 17.01.2013
what is the difference in doing
pawn Код:
new Text:hi[MAX_PLAYERS];
//whats the difference? between doing these 2 thing?
new PlayerText:bye[MAX_PLAYERS];
Re: playertext vs textdraw -
park4bmx - 17.01.2013
simple
CreatePlayerTextDraw uses
new PlayerText:
and
TextDrawCreate uses
new Text:
Re: playertext vs textdraw -
Glad2BeHere - 17.01.2013
Thats all you got ummm.... both methods above work but whats the difference because i see no purpose for the use of playertext in creating a regular text can carry the same feature :/
Re: playertext vs textdraw -
mineralo - 17.01.2013
just Text its more used for constant textdraws but PlayerText its used for dynamic textdraws like personally textdraw, also its not lagging with PlayerText
Re: playertext vs textdraw -
Vince - 17.01.2013
PlayerTexts get destroyed when that player disconnects. Normal textdraws don't.
Re: playertext vs textdraw -
Glad2BeHere - 17.01.2013
Thats what i wanted to here .... but did yall pay attention to what i did i can destroy regular one under onplayer disconnect if i do
Text:namehere[MAX_PLAYERS];
same as
PlayerText:namehere[MAX_PLAYERS];
SO i dont get it .... does the first method i show just elimate everything in playertext
in terms of i can use that instead of playertext because it give the same results ....
Re: playertext vs textdraw -
park4bmx - 17.01.2013
use
Text: for global textdraws as if you use
PlayerText: for global textures once a player disconnects the textdraw will be destroyed
you will no go wrong if you sue
Text: for global and for player each
Re: playertext vs textdraw -
Glad2BeHere - 17.01.2013
okay so playertext automatically destroys when they leave?