04.02.2017, 22:21
Quote:
Man, deu 4 erros que precisava adicionar o new string .. depois que adicionei deu mais 4 erros, que sгo esses:
PHP код:
ajuda ai? |
PHP код:
CMD:admins(playerid, params[])
{
new Dialog[256],str[128];
foreach(Player,i)
{
if(PlayerInfo[i][pAdmin] > 0 || PlayerInfo[i][pAdminTemp] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new lolz[40];
if(PlayerInfo[i][pAdminTemp] == 1)lolz = "TEMPORБRIO";
if(PlayerInfo[i][pAdmin] == 1)lolz = "1";
if(PlayerInfo[i][pAdmin] == 2)lolz = "2";
if(PlayerInfo[i][pAdmin] == 3)lolz = "3";
if(PlayerInfo[i][pAdmin] == 4)lolz = "4";
if(PlayerInfo[i][pAdmin] == 5)lolz = "5";
if(PlayerInfo[i][pAdmin] == 1337)lolz = "MASTER";
if(PlayerInfo[i][pAdmin] == 1338)lolz = "RESP. LIDERES";
if(PlayerInfo[i][pAdmin] == 1339)lolz = "RESP. ADM/HELPER";
if(PlayerInfo[i][pAdmin] == 1340)lolz = "RESP. EDIЗOES";
//if(PlayerInfo[i][pAdmin] == 1338)lolz = "RESP. ADM/HELPER";
//if(PlayerInfo[i][pAdmin] >= 1339 && PlayerInfo[i][pAdmin] <= 3000)lolz = "SUB-DONO";
if(PlayerInfo[i][pAdmin] == 5000)lolz = "FUNDADOR";
if(admtrampando[i] == 1)
{
format(str, 128, "Admin: %s Nнvel: [%s]", sendername, lolz);
strcat(Dialog,str);
}
else
{
format(str, 128, "Admin: %s Nнvel: [%s]", sendername, lolz);
strcat(Dialog,str);
}
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_MSGBOX, "Administradores Online", Dialog, "Fechar", "");
}
}
}
return true;
}