Dynamic Textdraw Box
#1

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


PHP код:

stock ShowInventaireOnPlayer
(playerid)
{
    for(new 
011; ++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(playerid0x9E9E9EFF); // On met la selection pour les textdraw sur le cфtй
    
ShowBoxInventaire(playerid,1,111.333335182.193328); // Il affiche celui la
    
ShowBoxInventaire(playerid,2,111.333335182.193328);
    
ShowBoxInventaire(playerid,3,111.333335182.193328);
    return 
1;
}
stock ShowBoxInventaire(playerid,id,Float:X,Float:Y)
{
    if(
id && id 3+= 120.0*id;
    
printf("X: %f, Y : %f",X,Y);
    
Inventaire[playerid][TextdrawID[playerid]] = TextDrawCreate(XY"_");
    
TextDrawLetterSize(Inventaire[playerid][TextdrawID[playerid]], 0.0000004.992962);
    
TextDrawTextSize(Inventaire[playerid][TextdrawID[playerid]], 48.6666640.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;

Reply
#2

UP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)