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"));
format(Arquivo, sizeof(Arquivo), "Contas/%s.ini", PlayerName(playerid)); // <<<
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);
Код:
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")); Tф a quase umas 3 horas tentando descobrir o que й. |
new PlayerText:TextTRG[MAX_PLAYERS][ /*O tamanho que estб utilizando em TextTRG*/ ]
TextTRG[playerid][1] = CreatePlayerTextDraw(playerid, 376.875000, 80.333351, "");
PlayerTextDrawLetterSize(playerid, TextTRG[playerid][1], 0.000000, 0.000000);
...
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 код:
|