10.06.2014, 19:24
Hi,
I create a kind of mSelection, so I create my box to display models, but it will not work, basically extends textdraw me, instead of me just move ...
Thank you for your help
I create a kind of mSelection, so I create my box to display models, but it will not work, basically extends textdraw me, instead of me just move ...
Thank you for your help
PHP код:
stock ShowInventaireOnPlayer(playerid)
{
for(new i = 0; i < 11; ++i) // On affiche les 10 textdraws de la mise en page
TextDrawShowForPlayer(playerid,Inventaire[playerid][i]); // On affiche les 10 textdraws de la mise en page
SelectTextDraw(playerid, 0x9E9E9EFF); // On met la selection pour les textdraw sur le cфtй
ShowBoxInventaire(playerid,1,111.333335, 182.193328); // Il affiche celui la
ShowBoxInventaire(playerid,2,111.333335, 182.193328);
ShowBoxInventaire(playerid,3,111.333335, 182.193328);
return 1;
}
stock ShowBoxInventaire(playerid,id,Float:X,Float:Y)
{
if(id > 0 && id < 3) X += 120.0*id;
printf("X: %f, Y : %f",X,Y);
Inventaire[playerid][TextdrawID[playerid]] = TextDrawCreate(X, Y, "_");
TextDrawLetterSize(Inventaire[playerid][TextdrawID[playerid]], 0.000000, 4.992962);
TextDrawTextSize(Inventaire[playerid][TextdrawID[playerid]], 48.666664, 0.000000);
TextDrawAlignment(Inventaire[playerid][TextdrawID[playerid]], 1);
TextDrawColor(Inventaire[playerid][TextdrawID[playerid]], 0);
TextDrawUseBox(Inventaire[playerid][TextdrawID[playerid]], true);
TextDrawBoxColor(Inventaire[playerid][TextdrawID[playerid]], 102);
TextDrawSetShadow(Inventaire[playerid][TextdrawID[playerid]], 0);
TextDrawSetOutline(Inventaire[playerid][TextdrawID[playerid]], 0);
TextDrawFont(Inventaire[playerid][TextdrawID[playerid]], 0);
TextDrawSetSelectable(Inventaire[playerid][TextdrawID[playerid]], true);
TextDrawShowForPlayer(playerid,Inventaire[playerid][TextdrawID[playerid]]);
TextdrawID[playerid]++;
printf("%d",TextdrawID[playerid]);
return 1;
}