[Ajuda] Textdraw ficando por baixo da box
#1

Eai galera bom eu estou com um problema aqui, minha textdraw estб ficando por baixo da box conforme aparece na imagem: Velocidade e Modelo por baixo da box e Combustнvel por cima. Eu queria que todos ficassem por cima me da um help ai.

Obs: Quem ajudar ganha + Rep.



Cуdigo:

PHP код:
public Velocimetro()
{
    for( new 
0<GetMaxPlayers( ) ; i++ )
    {
        if(
IsPlayerInAnyVehicle(i) == 1)
        {
            new 
string[255];
            new 
vid GetPlayerVehicleID(i);
            
format(stringsizeof(string), "Velocidade: ~w~%d"GetVehicleSpeed(vid));
            
TextDrawSetString(Velocidade[i],string);
            
format(stringsizeof(string), "Modelo: ~w~%s"VehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400]);
            
TextDrawSetString(Modelo[i],string);
            
TextDrawShowForPlayer(iCombustivel[i]);
            
TextDrawShowForPlayer(iTextdraw0);
            
TextDrawShowForPlayer(iTextdraw1);
            
TextDrawShowForPlayer(iTextdraw2);
            
TextDrawShowForPlayer(iModelo[i]);
            
TextDrawShowForPlayer(iTextdraw3);
            
TextDrawShowForPlayer(iTextdraw4);
            
TextDrawShowForPlayer(iTextdraw5);
            
TextDrawShowForPlayer(iVelocidade[i]);
        }
        else
        {
            
TextDrawHideForPlayer(iVelocidade[i]);
            
TextDrawHideForPlayer(iModelo[i]);
            
TextDrawHideForPlayer(iCombustivel[i]);
            
TextDrawHideForPlayer(iTextdraw0);
            
TextDrawHideForPlayer(iTextdraw1);
            
TextDrawHideForPlayer(iTextdraw2);
            
TextDrawHideForPlayer(iTextdraw3);
            
TextDrawHideForPlayer(iTextdraw4);
            
TextDrawHideForPlayer(iTextdraw5);
        }
    }
    return 
1;

Reply
#2

Troque isto

TextDrawShowForPlayer(i, Combustivel[i]);
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Modelo[i]);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Textdraw5);
TextDrawShowForPlayer(i, Velocidade[i]);


Por isto:

TextDrawShowForPlayer(i, Velocidade[i]);
TextDrawShowForPlayer(i, Modelo[i]);
TextDrawShowForPlayer(i, Combustivel[i]);
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Textdraw5);


Espero ter ajudado
Reply
#3

Quote:

Obs: Quem ajudar ganha + Rep.

aff que chato -qq

manda as textdraw para eu ver uma coisa, e tentar resolver .

manda a do combustivel, modelo, e velocidade
Reply
#4

Tem que mudar as coordenadas delas
Reply
#5

PHP код:
new Text:Textdraw0;
new 
Text:Textdraw1;
new 
Text:Textdraw2;
new 
Text:Textdraw3;
new 
Text:Textdraw4;
new 
Text:Textdraw5;
new 
Text:Velocidade[MAX_PLAYERS];
new 
Text:Modelo[MAX_PLAYERS];
new 
Text:Combustivel[MAX_PLAYERS];

forward Velocimetro(); 
PHP код:
public OnGameModeInit( )
{
    
SetTimer"Velocimetro"300) ;
    for( new 
0<GetMaxPlayers( ) ; i++ )
    {
        
Velocidade[i] = TextDrawCreate(517.000000335.000000"Velocidade:");
        
TextDrawBackgroundColor(Velocidade[i], 255);
        
TextDrawFont(Velocidade[i], 1);
        
TextDrawLetterSize(Velocidade[i], 0.3799991.399999);
        
TextDrawColor(Velocidade[i], -16776961);
        
TextDrawSetOutline(Velocidade[i], 1);

        
Modelo[i] = TextDrawCreate(516.000000349.000000"Modelo:");
        
TextDrawBackgroundColor(Modelo[i], 255);
        
TextDrawFont(Modelo[i], 1);
        
TextDrawLetterSize(Modelo[i], 0.3799991.399999);
        
TextDrawColor(Modelo[i], -16776961);
        
TextDrawSetOutline(Modelo[i], 1);
        
TextDrawSetProportional(Modelo[i], 1);

        
Combustivel[i] = TextDrawCreate(516.000000363.000000"Combustivel: ~w~100");
        
TextDrawBackgroundColor(Combustivel[i], 255);
        
TextDrawFont(Combustivel[i], 1);
        
TextDrawLetterSize(Combustivel[i], 0.3599991.399999);
        
TextDrawColor(Combustivel[i], -16776961);
        
TextDrawSetOutline(Combustivel[i], 1);
        
TextDrawSetProportional(Combustivel[i], 1);
    }

    
Textdraw0 TextDrawCreate(634.000000313.000000"_");
    
TextDrawBackgroundColor(Textdraw0255);
    
TextDrawFont(Textdraw01);
    
TextDrawLetterSize(Textdraw00.5000007.899999);
    
TextDrawColor(Textdraw0, -1);
    
TextDrawSetOutline(Textdraw00);
    
TextDrawSetProportional(Textdraw01);
    
TextDrawSetShadow(Textdraw01);
    
TextDrawUseBox(Textdraw01);
    
TextDrawBoxColor(Textdraw0, -222);
    
TextDrawTextSize(Textdraw0506.00000024.000000);

    
Textdraw1 TextDrawCreate(634.000000309.000000"_");
    
TextDrawBackgroundColor(Textdraw1255);
    
TextDrawFont(Textdraw11);
    
TextDrawLetterSize(Textdraw10.500000, -0.200000);
    
TextDrawColor(Textdraw1, -1);
    
TextDrawSetOutline(Textdraw10);
    
TextDrawSetProportional(Textdraw11);
    
TextDrawSetShadow(Textdraw11);
    
TextDrawUseBox(Textdraw11);
    
TextDrawBoxColor(Textdraw1255);
    
TextDrawTextSize(Textdraw1506.0000000.000000);

    
Textdraw2 TextDrawCreate(634.000000386.000000"_");
    
TextDrawBackgroundColor(Textdraw2255);
    
TextDrawFont(Textdraw21);
    
TextDrawLetterSize(Textdraw20.500000, -0.200000);
    
TextDrawColor(Textdraw2, -1);
    
TextDrawSetOutline(Textdraw20);
    
TextDrawSetProportional(Textdraw21);
    
TextDrawSetShadow(Textdraw21);
    
TextDrawUseBox(Textdraw21);
    
TextDrawBoxColor(Textdraw2255);
    
TextDrawTextSize(Textdraw2506.0000000.000000);

    
Textdraw3 TextDrawCreate(634.000000390.000000"_");
    
TextDrawBackgroundColor(Textdraw3255);
    
TextDrawFont(Textdraw31);
    
TextDrawLetterSize(Textdraw30.500000, -9.700000);
    
TextDrawColor(Textdraw3, -1);
    
TextDrawSetOutline(Textdraw30);
    
TextDrawSetProportional(Textdraw31);
    
TextDrawSetShadow(Textdraw31);
    
TextDrawUseBox(Textdraw31);
    
TextDrawBoxColor(Textdraw3255);
    
TextDrawTextSize(Textdraw3624.0000000.000000);

    
Textdraw4 TextDrawCreate(512.000000390.000000"_");
    
TextDrawBackgroundColor(Textdraw4255);
    
TextDrawFont(Textdraw41);
    
TextDrawLetterSize(Textdraw40.500000, -9.700000);
    
TextDrawColor(Textdraw4, -1);
    
TextDrawSetOutline(Textdraw40);
    
TextDrawSetProportional(Textdraw41);
    
TextDrawSetShadow(Textdraw41);
    
TextDrawUseBox(Textdraw41);
    
TextDrawBoxColor(Textdraw4255);
    
TextDrawTextSize(Textdraw4509.0000000.000000);

    
Textdraw5 TextDrawCreate(515.000000311.000000"~h~~g~Play ~y~Boy ~w~City ~r~RPG");
    
TextDrawBackgroundColor(Textdraw5255);
    
TextDrawFont(Textdraw51);
    
TextDrawLetterSize(Textdraw50.3499991.399999);
    
TextDrawColor(Textdraw5, -16776961);
    
TextDrawSetOutline(Textdraw51);
    
TextDrawSetProportional(Textdraw51);
    return 
1;

PHP код:
public Velocimetro()
{
    for( new 
0<GetMaxPlayers( ) ; i++ )
    {
        if(
IsPlayerInAnyVehicle(i) == 1)
        {
            new 
string[255];
            new 
vid GetPlayerVehicleID(i);

            
format(stringsizeof(string), "Velocidade: ~w~%d"GetVehicleSpeed(vid));
            
TextDrawSetString(Velocidade[i],string);

            
format(stringsizeof(string), "Modelo: ~w~%s"VehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400]);
            
TextDrawSetString(Modelo[i],string);



            
TextDrawShowForPlayer(iCombustivel[i]);
            
TextDrawShowForPlayer(iTextdraw0);
            
TextDrawShowForPlayer(iTextdraw1);
            
TextDrawShowForPlayer(iTextdraw2);
            
TextDrawShowForPlayer(iModelo[i]);
            
TextDrawShowForPlayer(iTextdraw3);
            
TextDrawShowForPlayer(iTextdraw4);
            
TextDrawShowForPlayer(iTextdraw5);
            
TextDrawShowForPlayer(iVelocidade[i]);
        }
        else
        {
            
TextDrawHideForPlayer(iVelocidade[i]);
            
TextDrawHideForPlayer(iModelo[i]);
            
TextDrawHideForPlayer(iCombustivel[i]);
            
TextDrawHideForPlayer(iTextdraw0);
            
TextDrawHideForPlayer(iTextdraw1);
            
TextDrawHideForPlayer(iTextdraw2);
            
TextDrawHideForPlayer(iTextdraw3);
            
TextDrawHideForPlayer(iTextdraw4);
            
TextDrawHideForPlayer(iTextdraw5);
        }
    }
    return 
1;

Reply
#6

Coloque os textdraws da velocidade, modelo, e combustivel, embaixo das boxs, ficando assim :

Textdraw0 = TextDrawCreate(634.000000, 313.000000, "_");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.500000, 7.899999);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, -222);
TextDrawTextSize(Textdraw0, 506.000000, 24.000000);

Textdraw1 = TextDrawCreate(634.000000, 309.000000, "_");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.500000, -0.200000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, 506.000000, 0.000000);

Textdraw2 = TextDrawCreate(634.000000, 386.000000, "_");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, -0.200000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawUseBox(Textdraw2, 1);
TextDrawBoxColor(Textdraw2, 255);
TextDrawTextSize(Textdraw2, 506.000000, 0.000000);

Textdraw3 = TextDrawCreate(634.000000, 390.000000, "_");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 1);
TextDrawLetterSize(Textdraw3, 0.500000, -9.700000);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawUseBox(Textdraw3, 1);
TextDrawBoxColor(Textdraw3, 255);
TextDrawTextSize(Textdraw3, 624.000000, 0.000000);

Textdraw4 = TextDrawCreate(512.000000, 390.000000, "_");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.500000, -9.700000);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
TextDrawUseBox(Textdraw4, 1);
TextDrawBoxColor(Textdraw4, 255);
TextDrawTextSize(Textdraw4, 509.000000, 0.000000);

Textdraw5 = TextDrawCreate(515.000000, 311.000000, "~h~~g~Play ~y~Boy ~w~City ~r~RPG");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 1);
TextDrawLetterSize(Textdraw5, 0.349999, 1.399999);
TextDrawColor(Textdraw5, -16776961);
TextDrawSetOutline(Textdraw5, 1);
TextDrawSetProportional(Textdraw5, 1);
for( new i = 0; i <GetMaxPlayers( ) ; i++ )
{
Velocidade[i] = TextDrawCreate(517.000000, 335.000000, "Velocidade:");
TextDrawBackgroundColor(Velocidade[i], 255);
TextDrawFont(Velocidade[i], 1);
TextDrawLetterSize(Velocidade[i], 0.379999, 1.399999);
TextDrawColor(Velocidade[i], -16776961);
TextDrawSetOutline(Velocidade[i], 1);

Modelo[i] = TextDrawCreate(516.000000, 349.000000, "Modelo:");
TextDrawBackgroundColor(Modelo[i], 255);
TextDrawFont(Modelo[i], 1);
TextDrawLetterSize(Modelo[i], 0.379999, 1.399999);
TextDrawColor(Modelo[i], -16776961);
TextDrawSetOutline(Modelo[i], 1);
TextDrawSetProportional(Modelo[i], 1);

Combustivel[i] = TextDrawCreate(516.000000, 363.000000, "Combustivel: ~w~100");
TextDrawBackgroundColor(Combustivel[i], 255);
TextDrawFont(Combustivel[i], 1);
TextDrawLetterSize(Combustivel[i], 0.359999, 1.399999);
TextDrawColor(Combustivel[i], -16776961);
TextDrawSetOutline(Combustivel[i], 1);
TextDrawSetProportional(Combustivel[i], 1);
}
Reply
#7

PHP код:
public Velocimetro()
{
    for( new 
0<GetMaxPlayers( ) ; i++ )
    {
        if(
IsPlayerInAnyVehicle(i) == 1)
        {
            new 
string[255];
            new 
vid GetPlayerVehicleID(i);

            
format(stringsizeof(string), "Velocidade: ~w~%d"GetVehicleSpeed(vid));
            
TextDrawSetString(Velocidade[i],string);
            
TextDrawShowForPlayer(iVelocidade[i]);

            
format(stringsizeof(string), "Modelo: ~w~%s"VehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400]);
            
TextDrawSetString(Modelo[i],string);
            
TextDrawShowForPlayer(iModelo[i]);



            
TextDrawShowForPlayer(iCombustivel[i]);
            
TextDrawShowForPlayer(iTextdraw0);
            
TextDrawShowForPlayer(iTextdraw1);
            
TextDrawShowForPlayer(iTextdraw2);
            
TextDrawShowForPlayer(iTextdraw3);
            
TextDrawShowForPlayer(iTextdraw4);
            
TextDrawShowForPlayer(iTextdraw5);
        }
        else
        {
            
TextDrawHideForPlayer(iVelocidade[i]);
            
TextDrawHideForPlayer(iModelo[i]);
            
TextDrawHideForPlayer(iCombustivel[i]);
            
TextDrawHideForPlayer(iTextdraw0);
            
TextDrawHideForPlayer(iTextdraw1);
            
TextDrawHideForPlayer(iTextdraw2);
            
TextDrawHideForPlayer(iTextdraw3);
            
TextDrawHideForPlayer(iTextdraw4);
            
TextDrawHideForPlayer(iTextdraw5);
        }
    }
    return 
1;

Reply
#8

Quote:
Originally Posted by yNexus
Посмотреть сообщение


aff que chato -qq

manda as textdraw para eu ver uma coisa, e tentar resolver .

manda a do combustivel, modelo, e velocidade
Sem ofensas ! mбs Projetos й com 'J' e nгo com 'G' sу avisando ^^ hsuahsua s2
Reply
#9

Quote:
Originally Posted by [BOPE]Seu._.Madruga
Посмотреть сообщение
Sem ofensas ! mбs Projetos й com 'J' e nгo com 'G' sу avisando ^^ hsuahsua s2
Sem double post sу avisando rsrs
Reply
#10

Quote:
Originally Posted by [BOPE]Seu._.Madruga
Посмотреть сообщение
Sem ofensas ! mбs Projetos й com 'J' e nгo com 'G' sу avisando ^^ hsuahsua s2
eu ia durmir sem saber disso hhaehae
obrigado por me avisar 2 bjs
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)