/infoadmin bugado -
PetterAdriano - 19.09.2013
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", cmdtext, true, 10) == 0)
{
if (PlayerInfo[playerid][pAdmin] < 1)
{
MSGPLAYER(playerid, COLOR_GREY,"{DDA0DD}B{FF0000}P{FFFF00}N{FFFFFF} Vocк nгo tem autorizaзгo para usar este comando.");
return 1;
}
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 8 && PlayerInfo[playerid][pAdmin] != 9 && PlayerInfo[playerid][pAdmin] != 10)
{
MSGPLAYER(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
new lol = 0;
new arquivo[128];
MSGPLAYER(playerid, COLOR_WHITE, "{9AC0CD} • • • • • • • • • • • • • • • • • • ( {BFEFFF}Admins do servidor{9AC0CD} ) • • • • • • • • • • • • • • • • • • ");
while (lol < sizeof(AdmInfo))
{
if(lol == 0)
{
format(string, sizeof(string), "{AFEEEE}ID VAGA [FUNDADOR SCRIPTER] - Nome: %s", AdmInfo[0][gMembro]);
MSGPLAYER(playerid, COLOR_AZULBB, string);
}
else
{
if(strcmp(AdmInfo[lol][gMembro],"Vazio",true) != 0)
{
if(PlayerInfo[playerid][pAdmin] == 10)
{
format(arquivo, sizeof(arquivo), "Jogadores/%s.ini",AdmInfo[lol][gMembro]);
format(string, sizeof(string), "{AFEEEE}ID VAGA [%d] - Nome: %s - Cargo: [%d]", lol, AdmInfo[lol][gMembro],dini_Int(arquivo,"AdminLevel"));
MSGPLAYER(playerid, COLOR_AZULBB, string);
}
else
{
format(arquivo, sizeof(arquivo), "Jogadores/%s.ini",AdmInfo[lol][gMembro]);
format(string, sizeof(string), "{AFEEEE}ID VAGA [%d] - Nome: %s", lol, AdmInfo[lol][gMembro]);
MSGPLAYER(playerid, COLOR_AZULBB, string);
}
}
}
lol++;
}
return 1;
}
Info VIP
PHP код:
if (strcmp("/infovip", cmdtext, true, 10) == 0 || strcmp("/infovips", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
MSGPLAYER(playerid, COLOR_GREY,"{DDA0DD}B{FF0000}P{FFFF00}N{FFFFFF} Vocк nгo tem autorizaзгo para usar este comando.");
return 1;
}
MSGPLAYER(playerid, COLOR_WHITE, "{9AC0CD} • • • • • • • • • • • • • • • • • • ( {BFEFFF}VIP's Do servidor{9AC0CD} ) • • • • • • • • • • • • • • • • • • ");
for(new x=0; x<sizeof(VipInfo); x++)
{
if(strcmp(VipInfo[x][vNick],"Ninguem",true) != 0)
{
format(string, sizeof(string), "Vip ID:[%d]: %s Nнvel:[%d]", x, VipInfo[x][vNick], VipInfo[x][vTipo]);
MSGPLAYER(playerid, COLOR_AZULBB, string);
}
}
return 1;
}
Re: /infoadmin bugado -
Dana_scully - 19.09.2013
new arquivo[128]; aumenta
Re: /infoadmin bugado -
PetterAdriano - 19.09.2013
Quote:
Originally Posted by Dana_scully
new arquivo[128]; aumenta
|
Cara jб tentei fazer isso, o problema nгo й na celulas
Re: /infoadmin bugado -
PT - 19.09.2013
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;
}
Re: /infoadmin bugado -
PetterAdriano - 19.09.2013
Ai PT obrigado cara, eu tava atй querendo desistir de SA-MP mais й isso ai vlw man, O que vc mudo ?
Re: /infoadmin bugado -
PT - 19.09.2013
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...