23.03.2012, 00:24
(
Последний раз редактировалось Jonny5; 23.03.2012 в 03:19.
)
this is simple,
if your making a text draw that EVERY player will see then it should be a global.
like a welcome message / gui or the likes, this is 1 TD that all players can see.
if your making like a stats TD, well this would be different for each player and you may want to use
the PlayerTextDraw functions.
so now you can have 2048 global TDs that you can show to any player,
and you get 256 more textdraws for each player.
so instead of making an array for the players using a global TD
theres no need!!!, if you got 500 players and make a global TD array then thats gonna use 500 TD's
User the player TD functions you only take 1 spot out of the 256 per player instead of 500 out of 2048 global.
now for storing the IDs of the player textdraws yes you might need an array depending on how
your implementing it and what your trying to achieve.
if your making a text draw that EVERY player will see then it should be a global.
like a welcome message / gui or the likes, this is 1 TD that all players can see.
if your making like a stats TD, well this would be different for each player and you may want to use
the PlayerTextDraw functions.
so now you can have 2048 global TDs that you can show to any player,
and you get 256 more textdraws for each player.
so instead of making an array for the players using a global TD
theres no need!!!, if you got 500 players and make a global TD array then thats gonna use 500 TD's
User the player TD functions you only take 1 spot out of the 256 per player instead of 500 out of 2048 global.
now for storing the IDs of the player textdraws yes you might need an array depending on how
your implementing it and what your trying to achieve.