[Ajuda] /infoadmin bugado
#1

Meu infoadmin ta bugado, Eu uso a base do Gamemode BMG = Brasil Magic Games, codei muito o gamemode e nгo quero deixa-lo para traz, alguйm pode me ajudar com esse bug ? o bug й tipo so aparece o admins Scripter e nao aparece o resto dos admins. obs: Acontece a mesma coisa com o /infovip.

Info Admin
PHP код:
    if (strcmp("/infoadmins"cmdtexttrue10) == 0)
    {
        if (
PlayerInfo[playerid][pAdmin] < 1)
        {
             
MSGPLAYER(playeridCOLOR_GREY,"{DDA0DD}B{FF0000}P{FFFF00}N{FFFFFF} Vocк nгo tem autorizaзгo para usar este comando.");
             return 
1;
        }
         if(
admtrampando[playerid] < && PlayerInfo[playerid][pAdmin] != && PlayerInfo[playerid][pAdmin] != && PlayerInfo[playerid][pAdmin] != 10)
        {
            
MSGPLAYER(playeridCOLOR_GRAD1"Vocк nгo estб trabalhando! (/trabalhar)");
            return 
1;
        }
        new 
lol 0;
        new 
arquivo[128];
        
MSGPLAYER(playeridCOLOR_WHITE"{9AC0CD} • • • • • • • • • • • • • • • • • • ( {BFEFFF}Admins do servidor{9AC0CD} ) • • • • • • • • • • • • • • • • • • ");
        while (
lol sizeof(AdmInfo))
        {
            if(
lol == 0)
            {
                
format(stringsizeof(string), "{AFEEEE}ID VAGA [FUNDADOR SCRIPTER] - Nome: %s"AdmInfo[0][gMembro]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
            }
            else
            {
                if(
strcmp(AdmInfo[lol][gMembro],"Vazio",true) != 0)
                {
                    if(
PlayerInfo[playerid][pAdmin] == 10)
                    {
                        
format(arquivosizeof(arquivo), "Jogadores/%s.ini",AdmInfo[lol][gMembro]);
                        
format(stringsizeof(string), "{AFEEEE}ID VAGA [%d] - Nome: %s - Cargo: [%d]"lolAdmInfo[lol][gMembro],dini_Int(arquivo,"AdminLevel"));
                        
MSGPLAYER(playeridCOLOR_AZULBBstring);
                    }
                    else
                    {
                        
format(arquivosizeof(arquivo), "Jogadores/%s.ini",AdmInfo[lol][gMembro]);
                        
format(stringsizeof(string), "{AFEEEE}ID VAGA [%d] - Nome: %s"lolAdmInfo[lol][gMembro]);
                        
MSGPLAYER(playeridCOLOR_AZULBBstring);
                    }
                }
            }
            
lol++;
        }
        return 
1;
       } 
Info VIP
PHP код:
       if (strcmp("/infovip"cmdtexttrue10) == || strcmp("/infovips"cmdtexttrue10) == 0)
    {
        if(
PlayerInfo[playerid][pAdmin] < 1)
        {
             
MSGPLAYER(playeridCOLOR_GREY,"{DDA0DD}B{FF0000}P{FFFF00}N{FFFFFF} Vocк nгo tem autorizaзгo para usar este comando.");
             return 
1;
        }
        
MSGPLAYER(playeridCOLOR_WHITE"{9AC0CD} • • • • • • • • • • • • • • • • • • ( {BFEFFF}VIP's Do servidor{9AC0CD} ) • • • • • • • • • • • • • • • • • • ");
        for(new 
x=0x<sizeof(VipInfo); x++)
        {
            if(
strcmp(VipInfo[x][vNick],"Ninguem",true) != 0)
            {
                
format(stringsizeof(string), "Vip ID:[%d]: %s Nнvel:[%d]"xVipInfo[x][vNick], VipInfo[x][vTipo]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
            }
        }
        return 
1;
       } 
Reply
#2

new arquivo[128]; aumenta
Reply
#3

Quote:
Originally Posted by Dana_scully
Посмотреть сообщение
new arquivo[128]; aumenta
Cara jб tentei fazer isso, o problema nгo й na celulas
Reply
#4

tenta la

pawn Код:
if (strcmp("/infoadmins", cmdtext, true, 10) == 0)
{
    if (PlayerInfo[playerid][pAdmin] < 1) return MSGPLAYER(playerid, COLOR_GREY,"{DDA0DD}B{FF0000}P{FFFF00}N{FFFFFF} Vocк nгo tem autorizaзгo para usar este comando.");

    if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 8 && PlayerInfo[playerid][pAdmin] != 9 && PlayerInfo[playerid][pAdmin] != 10) return MSGPLAYER(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");

    new lol = 0, arquivo[128], stringo[256];
       
    MSGPLAYER(playerid, COLOR_WHITE, "{9AC0CD} • • • • • • • • • • • • • • • • • • ( {BFEFFF}Admins do servidor{9AC0CD} ) • • • • • • • • • • • • • • • • • • ");
    while (lol < sizeof(AdmInfo))
    {
        if(lol == 0)
        {
            format(stringo, sizeof(stringo), "{AFEEEE}ID VAGA [FUNDADOR SCRIPTER] - Nome: %s", AdmInfo[0][gMembro]);
            MSGPLAYER(playerid, COLOR_AZULBB, stringo);
        }
        else
        {
            if(PlayerInfo[playerid][pAdmin] == 10)
            {
                format(arquivo, sizeof(arquivo), "Jogadores/%s.ini",AdmInfo[lol][gMembro]);
                format(stringo, sizeof(stringo), "{AFEEEE}ID VAGA [%d] - Nome: %s - Cargo: [%d]", lol, AdmInfo[lol][gMembro],dini_Int(arquivo,"AdminLevel"));
                MSGPLAYER(playerid, COLOR_AZULBB, stringo);
            }
            else
            {
                format(arquivo, sizeof(arquivo), "Jogadores/%s.ini",AdmInfo[lol][gMembro]);
                format(stringo, sizeof(stringo), "{AFEEEE}ID VAGA [%d] - Nome: %s", lol, AdmInfo[lol][gMembro]);
                MSGPLAYER(playerid, COLOR_AZULBB, stringo);
            }
        }
        lol++;
    }
    return 1;
}
pawn Код:
if (strcmp("/infovip", cmdtext, true, 10) == 0 || strcmp("/infovips", cmdtext, true, 10) == 0)
{
    new stringpt[256];
    if(PlayerInfo[playerid][pAdmin] < 1) return MSGPLAYER(playerid, COLOR_GREY,"{DDA0DD}B{FF0000}P{FFFF00}N{FFFFFF} Vocк nгo tem autorizaзгo para usar este comando.");

    MSGPLAYER(playerid, COLOR_WHITE, "{9AC0CD} • • • • • • • • • • • • • • • • • • ( {BFEFFF}VIP's Do servidor{9AC0CD} ) • • • • • • • • • • • • • • • • • • ");
    for(new x=0; x<sizeof(VipInfo); x++)
    {
        format(stringpt, sizeof(stringpt), "Vip ID:[%d]: %s Nнvel:[%d]", x, VipInfo[x][vNick], VipInfo[x][vTipo]);
        MSGPLAYER(playerid, COLOR_AZULBB, stringpt);  
    }
    return 1;
}
Reply
#5

Ai PT obrigado cara, eu tava atй querendo desistir de SA-MP mais й isso ai vlw man, O que vc mudo ?
Reply
#6

puxa a pagina para cima e olha o code que vc postou, depois anda pra baixo e ve o que eu postei, ae vera a diferenзa...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)