[Ajuda] Bug Atualizar TextDraw
#1

Seguinte, Minha barra informativa esta tudo certim, Mostra o level de cada um ...

So que se eu criar um clan, aparecera na parte: " Clan " para todos e se outro criar um Clan a cada vez que atualizar vai trocando os nomes ...

public de atualizaзгo

PHP код:
forward InfoRodape(playerid);
public 
InfoRodape(playerid)
{
    new 
stringrodape[258], Clan[126];
    new 
vip[MAX_PLAYERS][30];
    if(
PlayerInfo[playerid][pVip] == 1)
    {
        
vip[playerid] = "Sim";
    }
    else
    {
        
vip[playerid] = "Nao";
    }
    for(new 
0MAX_PLAYERSx++)
    {
        
format(ArquivoClansizeof(ArquivoClan), "clas/%s.ini"nome(x));
        if(
strcmp(DOF2_GetString(ArquivoClan"cla"), "Nenhum"false))
        {
            if(
strcmp(DOF2_GetString(ArquivoClan"cla"), DOF2_GetString(ArquivoClan2"cla"), true) == 0)
            {
                
format(Clansizeof(Clan), "%s"DOF2_GetString(ArquivoClan2"cla"));
            }
        }
    }
    
KillTimer(TimerRodape[playerid]);
    
TextDrawHideForPlayer(playeridRodape[playerid]);
    
format(stringrodapesizeof(stringrodape), "                  ~b~~h~Level | ~w~%i      ~b~~h~Casa | ~w~Nenhuma      ~b~~h~VIP | ~w~%s      ~b~~h~Clan | ~w~%s ~n~-"PlayerInfo[playerid][pLevel], vip[playerid], Clan);
    
TextDrawSetString(Rodape[playerid], stringrodape);
    
TextDrawShowForPlayer(playeridRodape[playerid]);
    
TimerRodape[playerid] = SetTimerEx("InfoRodape"5000true"d"playerid);
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)