• 19 Juillet 2019, 18:56:55


Auteur Sujet: Problème TextDraw  (Lu 1744 fois)

0 Membres et 1 Invité sur ce sujet

Hors ligne Julien4

  • *
  • Nouveau
  • Messages: 1
    • Voir le profil
Problème TextDraw
« le: 05 Juillet 2016, 15:40:41 »
Bonjour,

Cherchant à m'amuser à faire un petit FS, je rencontre quelques problèmes par manque de connaissance des TextDraw en général.

Voici mon but :
Je veux que lorsque je clique sur la touche 1(soit TextDraw2) et sur la touche 3(soit TextDraw3), ça me dise " Bonjour"

Cependant, impossible

Lorsque je definis que lorsque je clique sur 1 ça me dise " Bonjour " ça marche, sur 3 pareil mais les deux en même temps ça ne fonctionne pas.

Voici mes manipulations


Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 614.500000, 314.477844, "usebox");
PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 13.638266);
PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 527.500000, 0.000000);
PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw0[playerid], 0);
PlayerTextDrawUseBox(playerid, Textdraw0[playerid], true);
PlayerTextDrawBoxColor(playerid, Textdraw0[playerid], 255);
PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
PlayerTextDrawBackgroundColor(playerid, Textdraw0[playerid], 255);
PlayerTextDrawFont(playerid, Textdraw0[playerid], 0);

Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 539.500000, 316.088989, "Bombe");
PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw1[playerid], -1061109505);
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, 539.000000, 336.000030, "1");
PlayerTextDrawLetterSize(playerid, Textdraw2[playerid], 0.577000, 2.900000);
PlayerTextDrawAlignment(playerid, Textdraw2[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw2[playerid], 65535);
PlayerTextDrawSetShadow(playerid, Textdraw2[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw2[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw2[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw2[playerid], 3);
PlayerTextDrawSetProportional(playerid, Textdraw2[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw2[playerid], true);

Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 563.500000, 335.999938, "2");
PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 0.577000, 2.900000);
PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw3[playerid], 65535);
PlayerTextDrawSetShadow(playerid, Textdraw3[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw3[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw3[playerid], 3);
PlayerTextDrawSetProportional(playerid, Textdraw3[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw3[playerid], true);

Textdraw4[playerid] = CreatePlayerTextDraw(playerid, 590.500000, 335.999969, "3");
PlayerTextDrawLetterSize(playerid, Textdraw4[playerid], 0.577000, 2.900000);
PlayerTextDrawAlignment(playerid, Textdraw4[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw4[playerid], 65535);
PlayerTextDrawSetShadow(playerid, Textdraw4[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw4[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw4[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw4[playerid], 3);
PlayerTextDrawSetProportional(playerid, Textdraw4[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw4[playerid], true);

Textdraw5[playerid] = CreatePlayerTextDraw(playerid, 539.000000, 368.355560, "4");
PlayerTextDrawLetterSize(playerid, Textdraw5[playerid], 0.577000, 2.900000);
PlayerTextDrawAlignment(playerid, Textdraw5[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw5[playerid], 65535);
PlayerTextDrawSetShadow(playerid, Textdraw5[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw5[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw5[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw5[playerid], 3);
PlayerTextDrawSetProportional(playerid, Textdraw5[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw5[playerid], true);

Textdraw6[playerid] = CreatePlayerTextDraw(playerid, 564.500000, 367.733367, "5");
PlayerTextDrawLetterSize(playerid, Textdraw6[playerid], 0.577000, 2.900000);
PlayerTextDrawAlignment(playerid, Textdraw6[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw6[playerid], 65535);
PlayerTextDrawSetShadow(playerid, Textdraw6[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw6[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw6[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw6[playerid], 3);
PlayerTextDrawSetProportional(playerid, Textdraw6[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw6[playerid], true);

Textdraw7[playerid] = CreatePlayerTextDraw(playerid, 590.500000, 367.733306, "6");
PlayerTextDrawLetterSize(playerid, Textdraw7[playerid], 0.577000, 2.900000);
PlayerTextDrawAlignment(playerid, Textdraw7[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw7[playerid], 65535);
PlayerTextDrawSetShadow(playerid, Textdraw7[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw7[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw7[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw7[playerid], 3);
PlayerTextDrawSetProportional(playerid, Textdraw7[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw7[playerid], true);

Textdraw8[playerid] = CreatePlayerTextDraw(playerid, 541.000000, 400.711090, "7");
PlayerTextDrawLetterSize(playerid, Textdraw8[playerid], 0.577000, 2.900000);
PlayerTextDrawAlignment(playerid, Textdraw8[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw8[playerid], 65535);
PlayerTextDrawSetShadow(playerid, Textdraw8[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw8[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw8[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw8[playerid], 3);
PlayerTextDrawSetProportional(playerid, Textdraw8[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw8[playerid], true);

Textdraw9[playerid] = CreatePlayerTextDraw(playerid, 566.500000, 400.711151, "8");
PlayerTextDrawLetterSize(playerid, Textdraw9[playerid], 0.577000, 2.900000);
PlayerTextDrawAlignment(playerid, Textdraw9[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw9[playerid], 65535);
PlayerTextDrawSetShadow(playerid, Textdraw9[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw9[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw9[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw9[playerid], 3);
PlayerTextDrawSetProportional(playerid, Textdraw9[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw9[playerid], true);

Textdraw10[playerid] = CreatePlayerTextDraw(playerid, 592.000000, 401.333374, "9");
PlayerTextDrawLetterSize(playerid, Textdraw10[playerid], 0.577000, 2.900000);
PlayerTextDrawAlignment(playerid, Textdraw10[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw10[playerid], 65535);
PlayerTextDrawSetShadow(playerid, Textdraw10[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw10[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Textdraw10[playerid], 51);
PlayerTextDrawFont(playerid, Textdraw10[playerid], 3);
PlayerTextDrawSetProportional(playerid, Textdraw10[playerid], 1);
PlayerTextDrawSetSelectable(playerid, Textdraw10[playerid], true);
return 1;
}
" alt="" class="bbc_img" />
if (!strcmp("/bombe", cmdtext, true))
{
SelectTextDraw(playerid, 0x00FF00FF);
PlayerTextDrawShow(playerid, Textdraw0[playerid]);
PlayerTextDrawShow(playerid, Textdraw1[playerid]);
PlayerTextDrawShow(playerid, Textdraw2[playerid]);
PlayerTextDrawShow(playerid, Textdraw3[playerid]);
PlayerTextDrawShow(playerid, Textdraw4[playerid]);
PlayerTextDrawShow(playerid, Textdraw5[playerid]);
PlayerTextDrawShow(playerid, Textdraw6[playerid]);
PlayerTextDrawShow(playerid, Textdraw7[playerid]);
PlayerTextDrawShow(playerid, Textdraw8[playerid]);
PlayerTextDrawShow(playerid, Textdraw9[playerid]);
PlayerTextDrawShow(playerid, Textdraw10[playerid]);
}
  return 1;
}
" alt="" class="bbc_img" />
{
      SendClientMessage(playerid, 0xFFFFFFAA, "Bonjour");
    CancelSelectTextDraw(playerid);
    }
return 1;
}
" alt="" class="bbc_img" />
Je m'excuse de ne pas avoir encore fais ma présentation...

Merci d'avance et passez une bonne journée.

Julien4