playertext vs textdraw
#1

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];
Reply
#2

simple
CreatePlayerTextDraw uses new PlayerText:
and
TextDrawCreate uses new Text:
Reply
#3

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 :/
Reply
#4

just Text its more used for constant textdraws but PlayerText its used for dynamic textdraws like personally textdraw, also its not lagging with PlayerText
Reply
#5

PlayerTexts get destroyed when that player disconnects. Normal textdraws don't.
Reply
#6

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 ....
Reply
#7

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
Reply
#8

okay so playertext automatically destroys when they leave?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)