[FilterScript] Browser Skins
#10

Quote:
Originally Posted by Breakbouster
View Post
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
Reply


Messages In This Thread
Browser Skins - by Breakbouster - 03.07.2012, 13:46
Re: Browser Skins - by Breakbouster - 03.07.2012, 15:10
Re: Browser Skins - by Littlehelper - 03.07.2012, 15:21
Re: Browser Skins - by Breakbouster - 03.07.2012, 15:57
Re: Browser Skins - by Niko_boy - 03.07.2012, 16:32
Re: Browser Skins - by Mark Shade - 03.07.2012, 17:06
Re: Browser Skins - by Littlehelper - 03.07.2012, 17:09
Re: Browser Skins - by Breakbouster - 04.07.2012, 10:58
Re: Browser Skins - by Delete_ - 04.07.2012, 11:52
Re: Browser Skins - by Jonny5 - 04.07.2012, 14:44

Forum Jump:


Users browsing this thread: 1 Guest(s)