Can this lag my server ?
#1

Can this lag my server ?
Код:
public OnGameModeInit()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
	gro[i] = TextDrawCreate(542.000000, 370.000000, "_");
	TextDrawBackgroundColor(gro[i], -16776961);
	TextDrawFont(gro[i], 1);
	TextDrawLetterSize(gro[i], 0.219999, 1.799999);
	TextDrawColor(gro[i], -1);
	TextDrawSetOutline(gro[i], 0);
	TextDrawSetProportional(gro[i], 1);
        TextDrawSetShadow(gro[i], 0);

	gro1[i] = TextDrawCreate(542.000000, 370.000000, "_");
	TextDrawBackgroundColor(gro1[i], -16776961);
	TextDrawFont(gro1[i], 1);
	TextDrawLetterSize(gro1[i], 0.219999, 1.799999);
	TextDrawColor(gro1[i], -1);
	TextDrawSetOutline(gro1[i], 0);
	TextDrawSetProportional(gro1[i], 1);
        TextDrawSetShadow(gro1[i], 0);

	gro1[i] = TextDrawCreate(542.000000, 370.000000, "_");
	TextDrawBackgroundColor(gro1[i], -16776961);
	TextDrawFont(gro1[i], 1);
	TextDrawLetterSize(gro1[i], 0.219999, 1.799999);
	TextDrawColor(gro1[i], -1);
	TextDrawSetOutline(gro1[i], 0);
	TextDrawSetProportional(gro1[i], 1);
        TextDrawSetShadow(gro1[i], 0);
}		
}
Reply
#2

How many slots do you have?
Reply
#3

Quote:
Originally Posted by McCarthy
Посмотреть сообщение
How many slots do you have?
400 slots
Reply
#4

Use Player Textdraw instead
Reply
#5

it may, but you could use it on player connect.
Reply
#6

creating 1200 textdraws wont cause any lag - its just the initialisation part, which gets called.. let me count... 1 time only
Reply
#7

No, but unless you're changing the values of those textdraws you won't need to create them for every player.
Reply
#8

If you use it smart, it wont, but be carefull.
Reply
#9

I recommend using PlayerTextDraw or foreach By ******

because there is only using 1500 textdraw
Reply
#10

I don't think it would!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)