- Joined
- May 11, 2008
- Messages
- 1,198
which of the following is better?
call DisplayTextToForce( GetPlayersAll(), udg_texts[11] )
or...
call DisplayTextToPlayer(Player(0), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(1), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(2), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(3), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(4), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(5), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(6), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(7), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(8), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(9), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(10), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(11), 0, 0, udg_texts[11])
i've heard that red functions are to be avoided...but i don't know how to make purple function just one for all those. it's an easy matter for me to copy and paste and alter the number after Player( but i want to do whatever is best for the smoothness and of my map since i don't want it crashing.
i've been starting to learn a bit about vjass and a tutorial explained some ways to play around with the functions a bit but i still have a lot to learn about all the various functions...
call DisplayTextToForce( GetPlayersAll(), udg_texts[11] )
or...
call DisplayTextToPlayer(Player(0), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(1), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(2), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(3), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(4), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(5), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(6), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(7), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(8), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(9), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(10), 0, 0, udg_texts[11])
call DisplayTextToPlayer(Player(11), 0, 0, udg_texts[11])
i've heard that red functions are to be avoided...but i don't know how to make purple function just one for all those. it's an easy matter for me to copy and paste and alter the number after Player( but i want to do whatever is best for the smoothness and of my map since i don't want it crashing.
i've been starting to learn a bit about vjass and a tutorial explained some ways to play around with the functions a bit but i still have a lot to learn about all the various functions...