[Ajuda] PreviewModel !!
#3

Quote:
Originally Posted by Felipe1241421
Посмотреть сообщение
Код:
TextTRG[1] = CreatePlayerTextDraw(playerid, 376.875000, 80.333351, "");
	PlayerTextDrawLetterSize(playerid, TextTRG[1], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, TextTRG[1], 113.000000, 147.000000);
	PlayerTextDrawAlignment(playerid, TextTRG[1], 1);
	PlayerTextDrawColor(playerid, TextTRG[1], -1);
	PlayerTextDrawSetShadow(playerid, TextTRG[1], 0);
	PlayerTextDrawSetOutline(playerid, TextTRG[1], 0);
	PlayerTextDrawBackgroundColor(playerid, TextTRG[1], -256);
	PlayerTextDrawFont(playerid, TextTRG[1], 5);
	PlayerTextDrawSetProportional(playerid, TextTRG[1], 0);
	PlayerTextDrawSetShadow(playerid, TextTRG[1], 0);
	PlayerTextDrawSetPreviewModel(playerid, TextTRG[1], DOF2_GetInt(Arquivo, "Skin"));
	PlayerTextDrawSetPreviewRot(playerid, TextTRG[1], 0.000000, 0.000000, 0.000000, 1.000000);
Код:
PlayerTextDrawSetPreviewModel(playerid, TextTRG[1], DOF2_GetInt(SkinZ, "Skin"));
Meu problema й o seguinte, quando eu entro a imagem da Skin aparece normal, mais quando um 2є jogador entra aparece sу a minha, nгo aparece a do outro jogador ;-;
Tф a quase umas 3 horas tentando descobrir o que й.
Vocк deve indexar a variбvel que estб armazenando a TextDraw do preview model, pois vocк precisa criar essa TextDraw para cada jogador, logo precisa armazenar ela em uma variбvel, e й para isso que vocк indexa a variбvel, para que ela tenha o tamanho suficiente para armazenar todos jogadores, no caso o nъmero mбximo de jogadores, MAX_PLAYERS.

Ex:
PHP код:
new PlayerText:TextTRG[MAX_PLAYERS][ /*O tamanho que estб utilizando em TextTRG*/ ]
TextTRG[playerid][1] = CreatePlayerTextDraw(playerid376.87500080.333351"");
PlayerTextDrawLetterSize(playeridTextTRG[playerid][1], 0.0000000.000000);
... 
Reply


Messages In This Thread
PreviewModel !! - by Felipe1241421 - 13.01.2017, 23:31
Respuesta: PreviewModel !! - by SammyJ - 13.01.2017, 23:37
Re: PreviewModel !! - by Bruno13 - 16.01.2017, 18:13
Re: PreviewModel !! - by Felipe1241421 - 16.01.2017, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)