Question!
#1

Doubt, I have a record using textdraws in this way working through keys.

new
Text:RegDraw[MAX_PLAYERS];

In OnGamemodeInit.

Код:
	for(new i = 0; i<MAX_PLAYERS; i++)
	{
		RegDraw[i] = TextDrawCreate(190.000000, 367.000000, "~n~Sexo:  ~r~Masculino          ~w~Edad: ~r~29~n~~n~~w~Origen: ~r~America    ~w~Estilo: ~r~Pandilla1");
		TextDrawBackgroundColor(RegDraw[i], 255);
		TextDrawFont(RegDraw[i], 1);
		TextDrawLetterSize(RegDraw[i], 0.320000, 1.200000);
		TextDrawColor(RegDraw[i], -1);
		TextDrawSetOutline(RegDraw[i], 1);
		TextDrawSetProportional(RegDraw[i], 1);
		TextDrawUseBox(RegDraw[i], 1);
		TextDrawBoxColor(RegDraw[i], 70);
		TextDrawTextSize(RegDraw[i], 400.000000, 110.000000);
	}
At the moment of showing them it is

Код:
	TextDrawShowForPlayer(playerid, RegDraw[playerid]);
	TextDrawSetString(RegDraw[playerid], "~n~~>~Sexo:  ~r~Sin Sexo          ~w~Edad: ~r~?~n~~n~~w~Origen: ~r~Sin Origen    ~w~Estilo: ~r~?");
My question is, is this the best way or should I use it with PlayerTextdraw instead of how it is defined?
Reply
#2

I'd recommend this usage only on these subjects:

Код:
MAX_PLAYERS is low ---->
                             |
                             |
                             |
                             Game mode has got a lot of player textdraws ---->
                                                                              |
                                                                              |
                                                                              |
                                                                              Game mode has got a small amount of global textdraws


Either way works often.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)