[Ajuda] TEXTDRAW BUGADO
#21

Quote:
Originally Posted by wearLy
View Post
Estou com um tempo livre, ai acabei fazendo para vocк:

https://pastebin.com/Sjcxv5Rc

Testa ai!
Seu cуdigo estava fazendo o pawno parar de funcionar na hora de compilar.
Reply
#22

Quote:
Originally Posted by AutoMatic2
View Post
PHP Code:
//  Topo do GM
new PlayerText:Rodape[MAX_PLAYERS][7];
forward RodapeTD(playerid);
//  Public OnPlayerConnect
public OnPlayerConnect(playerid)
{
    
LoadTextDraws(playerid);
    return 
1;
}
//  Final do GM
LoadTextDraws(playerid)
{
    
SetTimerEx("RodapeTD"500true"d"playerid);
    
Rodape[playerid][0] = CreatePlayerTextDraw(playerid641.529418423.250000"_");
    
PlayerTextDrawBackgroundColor(playeridRodape[playerid][0], 255);
    
PlayerTextDrawFont(playeridRodape[playerid][0], 0);
    
PlayerTextDrawLetterSize(playeridRodape[playerid][0], 0.0000002.535187);
    
PlayerTextDrawColor(playeridRodape[playerid][0], 0);
    
PlayerTextDrawSetOutline(playeridRodape[playerid][0], 0);
    
PlayerTextDrawSetProportional(playeridRodape[playerid][0], 1);
    
PlayerTextDrawSetShadow(playeridRodape[playerid][0], 1);
    
PlayerTextDrawUseBox(playeridRodape[playerid][0], 1);
    
PlayerTextDrawBoxColor(playeridRodape[playerid][0], 170);
    
PlayerTextDrawTextSize(playeridRodape[playerid][0], -2.0000000.000000);
    
Rodape[playerid][1] = CreatePlayerTextDraw(playerid10.823518428.749969"ID:");
    
PlayerTextDrawBackgroundColor(playeridRodape[playerid][1], 51);
    
PlayerTextDrawAlignment(playeridRodape[playerid][1], 1);
    
PlayerTextDrawFont(playeridRodape[playerid][1], 1);
    
PlayerTextDrawLetterSize(playeridRodape[playerid][1], 0.4499991.600000);
    
PlayerTextDrawColor(playeridRodape[playerid][1], -16776961);
    
PlayerTextDrawSetOutline(playeridRodape[playerid][1], 0);
    
PlayerTextDrawSetProportional(playeridRodape[playerid][1], 1);
    
Rodape[playerid][2] = CreatePlayerTextDraw(playerid127.529457428.166564"R$:");
    
PlayerTextDrawBackgroundColor(playeridRodape[playerid][2], 51);
    
PlayerTextDrawAlignment(playeridRodape[playerid][2], 1);
    
PlayerTextDrawFont(playeridRodape[playerid][2], 1);
    
PlayerTextDrawLetterSize(playeridRodape[playerid][2], 0.4499991.600000);
    
PlayerTextDrawColor(playeridRodape[playerid][2], 8388863);
    
PlayerTextDrawSetOutline(playeridRodape[playerid][2], 0);
    
PlayerTextDrawSetProportional(playeridRodape[playerid][2], 1);
    
Rodape[playerid][3] = CreatePlayerTextDraw(playerid255.048370428.166595"NICK:");
    
PlayerTextDrawBackgroundColor(playeridRodape[playerid][3], 51);
    
PlayerTextDrawAlignment(playeridRodape[playerid][3], 1);
    
PlayerTextDrawFont(playeridRodape[playerid][3], 1);
    
PlayerTextDrawLetterSize(playeridRodape[playerid][3], 0.4499991.600000);
    
PlayerTextDrawColor(playeridRodape[playerid][3], -65281);
    
PlayerTextDrawSetOutline(playeridRodape[playerid][3], 0);
    
PlayerTextDrawSetProportional(playeridRodape[playerid][3], 1);
    
Rodape[playerid][4] = CreatePlayerTextDraw(playerid406.824035428.166748"LEVEL:");
    
PlayerTextDrawBackgroundColor(playeridRodape[playerid][4], 51);
    
PlayerTextDrawAlignment(playeridRodape[playerid][4], 1);
    
PlayerTextDrawFont(playeridRodape[playerid][4], 1);
    
PlayerTextDrawLetterSize(playeridRodape[playerid][4], 0.4499991.600000);
    
PlayerTextDrawColor(playeridRodape[playerid][4], 65535);
    
PlayerTextDrawSetOutline(playeridRodape[playerid][4], 0);
    
PlayerTextDrawSetProportional(playeridRodape[playerid][4], 1);
    
Rodape[playerid][5] = CreatePlayerTextDraw(playerid553.411193427.583251"VIP:");
    
PlayerTextDrawBackgroundColor(playeridRodape[playerid][5], 51);
    
PlayerTextDrawAlignment(playeridRodape[playerid][5], 1);
    
PlayerTextDrawFont(playeridRodape[playerid][5], 1);
    
PlayerTextDrawLetterSize(playeridRodape[playerid][5], 0.4499991.600000);
    
PlayerTextDrawColor(playeridRodape[playerid][5], -2147450625);
    
PlayerTextDrawSetOutline(playeridRodape[playerid][5], 0);
    
PlayerTextDrawSetProportional(playeridRodape[playerid][5], 1);
    
Rodape[playerid][6] = CreatePlayerTextDraw(playerid503.058441394.917114"www.brasilcidadevirtual.tk");
    
PlayerTextDrawBackgroundColor(playeridRodape[playerid][6], 51);
    
PlayerTextDrawAlignment(playeridRodape[playerid][6], 1);
    
PlayerTextDrawFont(playeridRodape[playerid][6], 1);
    
PlayerTextDrawLetterSize(playeridRodape[playerid][6], 0.2645881.535833);
    
PlayerTextDrawColor(playeridRodape[playerid][6], 16777215);
    
PlayerTextDrawSetOutline(playeridRodape[playerid][6], 0);
    
PlayerTextDrawSetProportional(playeridRodape[playerid][6], 1);
    return 
1;
}
public 
RodapeTD(playerid)
{
    if(
IsPlayerConnected(playerid))
    {
        new 
String[45];
        
PlayerTextDrawSetString(playeridRodape[playerid][0], "_");
        
PlayerTextDrawShow(playeridRodape[playerid][0]);
        
format(Stringsizeof(String), "ID: ~w~%d"playerid);
        
PlayerTextDrawSetString(playeridRodape[playerid][1], String);
        
PlayerTextDrawShow(playeridRodape[playerid][1]);
        
format(Stringsizeof(String), "R$: ~w~%d"GetPlayerGrana(playerid));
        
PlayerTextDrawSetString(playeridRodape[playerid][2], String);
        
PlayerTextDrawShow(playeridRodape[playerid][2]);
        
format(Stringsizeof(String), "NICK: ~w~%s"PlayerName(playerid));
        
PlayerTextDrawSetString(playeridRodape[playerid][3], String);
        
PlayerTextDrawShow(playeridRodape[playerid][3]);
        
format(Stringsizeof(String), "LEVEL: ~w~%d"dini_Int(file"Level"));
        
PlayerTextDrawSetString(playeridRodape[playerid][4], String);
        
PlayerTextDrawShow(playeridRodape[playerid][4]);
        if(
IsPlayerVIP(playerid) == 1)
        {
            
format(Stringsizeof(String), "VIP: ~w~Sim");
            
PlayerTextDrawSetString(playeridRodape[playerid][5], String);
            
PlayerTextDrawShow(playeridRodape[playerid][5]);
        }
        else
        {
            
format(Stringsizeof(String), "VIP: ~w~Nao");
            
PlayerTextDrawSetString(playeridRodape[playerid][5], String);
            
PlayerTextDrawShow(playeridRodape[playerid][5]);
        }
        
        
PlayerTextDrawSetString(playeridRodape[playerid][6], "www.brasilcidadevirtual.tk");
        
PlayerTextDrawShow(playeridRodape[playerid][6]);
    }
    return 
1;

Nгo testei se tiver erros vocк consegue arrumar, Й bem simples de fazer TD's

@CUIDADO

Suas strings contйm muitas cйlulas! Vocк nгo vai utilizar 500 cйlulas para pegar o level do player no mбximo: 35 б 45 caracteres
Valeu mano!
Deu certo, tmj!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)