Quote:
Originally Posted by Breakbouster
Any comment?
|
this is terrible!
pawn Code:
for(new X = 10; X < 20; X++)
{
TextDraw[X] = TextDrawCreate(TextDrawPosition[0],TextDrawPosition[1],"~N~~N~~N~~N~~N~~N~~N~~N~~N~~N~");
20 TEXTDRAWS just with blank nothing in them, what a waste
but wait.. theres more
pawn Code:
for(new X = 20; X < 30; X++)
{
TextDraw[X] = TextDrawCreate(TextDrawPosition[0],TextDrawPosition[1],"~N~~N~~N~~N~~N~");
there another wasted 10 TDS.
for what? just find the position and do it with 2 tds, not 31 of them.
and also you create another 100 for MAXIMAL_PLAYERS which i have no clue
why you wouldnt use MAX_PLAYERS but even if
if only 1 player is on you still have 100 TDS for the players to see.
I would use
1 Text: and 1 PlayerText: (per player)
and create and destroy the PlayerText: in OnPlayerRequestClass & OnPlayerSpawn
as they wont be needed while your spawned.
your way is very inefficient