Question! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question! (
/showthread.php?tid=645467)
Question! -
Fagrinht - 27.11.2017
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?
Re: Question! -
Meller - 27.11.2017
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.