GTAOnline.net

San Andreas Multiplayer (sa:mp) => Problèmes et bugs => Discussion démarrée par: Xely le 04 Juillet 2014, 10:18:50

Titre: Problème Textdraw qui ne s'affiche pas.
Posté par: Xely le 04 Juillet 2014, 10:18:50
Bonjour,
Récemment j'ai créer des textdraw avec un FS ( iTd ( ipleomax ou je sais plus quoi )).
J'ai voulut le mettre sur mon serveur mais il ne s'affiche pas.

Le Code

Déjà j'ai mis les new ...

Dans le gamemode init :

Le Create Textdraw :
PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 23.274436);
PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 80.399986, 0.000000);
PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw0[playerid], 0);
PlayerTextDrawUseBox(playerid, Textdraw0[playerid], true);
PlayerTextDrawBoxColor(playerid, Textdraw0[playerid], 102);
PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw0[playerid], 0);

Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 91.200073, 231.466415, "nous allons te poser des questions, et tu va suivre un tutoriel.");
PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw1[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw1[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw1[playerid], 1);
PlayerTextDrawSetProportional(playerid, Textdraw1[playerid], 1);

Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 142.399887, 208.319961, "Vu que c'est la premiere fois que tu te connectes,");
PlayerTextDrawLetterSize(playerid, Textdraw2[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw2[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw2[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw2[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw2[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw2[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw2[playerid], 1);
PlayerTextDrawSetProportional(playerid, Textdraw2[playerid], 1);

Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 221.599990, 147.839981, "Bienvenue sur Modern-War RP !");
PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw3[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw3[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw3[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw3[playerid], 1);
PlayerTextDrawSetProportional(playerid, Textdraw3[playerid], 1);

Textdraw4[playerid] = CreatePlayerTextDraw(playerid, 450.399993, 328.533416, "SUIVANT -->");
PlayerTextDrawLetterSize(playerid, Textdraw4[playerid], 0.581999, 2.622934);
PlayerTextDrawTextSize(playerid, Textdraw4[playerid], -6.399999, -9.706666);
PlayerTextDrawAlignment(playerid, Textdraw4[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw4[playerid], 445701757);
PlayerTextDrawSetShadow(playerid, Textdraw4[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw4[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw4[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw4[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw4[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw4[playerid], true);

Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 309.599884, 209.813323, "");
PlayerTextDrawLetterSize(playerid, Textdraw5[playerid], 0.408399, 0.270932);
PlayerTextDrawAlignment(playerid, Textdraw5[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw5[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw5[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw5[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw5[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw5[playerid], 1);
PlayerTextDrawSetProportional(playerid, Textdraw5[playerid], 1);

Textdraw6[playerid] = CreatePlayerTextDraw(playerid, 494.399902, 209.066665, "/");
PlayerTextDrawLetterSize(playerid, Textdraw6[playerid], 0.194801, 0.323199);
PlayerTextDrawAlignment(playerid, Textdraw6[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw6[playerid], -1);
PlayerTextDrawSetShadow(playerid, Textdraw6[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw6[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw6[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw6[playerid], 1);
PlayerTextDrawSetProportional(playerid, Textdraw6[playerid], 1);

Textdraw7[playerid] = CreatePlayerTextDraw(playerid, 87.399971, 329.533477, "<-- PRECEDENT");
PlayerTextDrawLetterSize(playerid, Textdraw7[playerid], 0.581999, 2.622934);
PlayerTextDrawTextSize(playerid, Textdraw7[playerid], -6.399999, -9.706666);
PlayerTextDrawAlignment(playerid, Textdraw7[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw7[playerid], 1296977789);
PlayerTextDrawSetShadow(playerid, Textdraw7[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw7[playerid], -2);
PlayerTextDrawBackgroundColor(playerid, Textdraw7[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw7[playerid], 2);
PlayerTextDrawSetProportional(playerid, Textdraw7[playerid], 1);
return 1;
}" alt="" class="bbc_img" />
Et des que l'on s'inscrit ( donc après l'inscription je les affiche ) :
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
    TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawShowForPlayer(playerid, Textdraw4[playerid]);
TextDrawShowForPlayer(playerid, Textdraw5[playerid]);
    TextDrawShowForPlayer(playerid, Textdraw6[playerid]);
TextDrawShowForPlayer(playerid, Textdraw7[playerid]);" alt="" class="bbc_img" />
Titre: Re : Problème Textdraw qui ne s'affiche pas.
Posté par: TheRimini le 26 Juillet 2014, 01:14:01
A la place du [playerid] mets un .

Exemple:


à remplacer par: