*CMD:admins(playerid, params[])
{
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new string[200];
if(admtrampando[i] == 1)
{
if(PlayerInfo[i][pAdmin] == 1337)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Master{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 3001)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Subdono{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 5000)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Fundador{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 1338)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Gerente{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername,PlayerInfo[i][pFuncao]);
else
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername, PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar");
}
else
{
if(PlayerInfo[i][pAdmin] == 1337)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Master{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 3001)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Subdono{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 5000)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Fundador{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 1338)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Gerente{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername, PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar");
}
}
}
if(PlayerInfo[i][pAdminTemp] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new string[128];
if(admtrampando[i] == 1)
{
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Temporбrio{B4B5B7}]", sendername);
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar");
}
else
{
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Temporбrio{B4B5B7}] {FFFFFF}[Jogando]", sendername);
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar");
}
}
}
}
return true;
}
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}%s{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]", sendername, getadminname(i), PlayerInfo[i][pFuncao]);
CMD:admins(playerid, params[])
{
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new string[200];
if(admtrampando[i] == 1)
{
if(PlayerInfo[i][pAdmin] == 1337)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Master{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 3001)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Subdono{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 5000)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Fundador{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 1338)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Gerente{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n", sendername,PlayerInfo[i][pFuncao]);
else
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n", sendername, PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar");
}
else
{
if(PlayerInfo[i][pAdmin] == 1337)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Master{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 3001)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Subdono{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 5000)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Fundador{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n", sendername,PlayerInfo[i][pFuncao]);
else if(PlayerInfo[i][pAdmin] == 1338)
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Gerente{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n", sendername,PlayerInfo[i][pFuncao]);
else
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n", sendername, PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]);
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar");
}
}
}
if(PlayerInfo[i][pAdminTemp] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new string[128];
if(admtrampando[i] == 1)
{
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Temporбrio{B4B5B7}]\n", sendername);
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar");
}
else
{
format(string, 128, "Admin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Temporбrio{B4B5B7}] {FFFFFF}[Jogando]\n", sendername);
ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar");
}
}
}
}
return true;
}
new stf[1], str[1];
//loop
//caso for admin
//formata uma linha
format(stf, sizeof stf, "...\n");
//armazena na string principal
strcat(str, stf, sizeof str);
//fim do loop
//verifica se a string str esta vazia
if(str[0] == EOS)
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", "Nenhum admin", "OK", "");
else
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", str, "OK", "");
if(!strcmp(cmd, "/admins", true))
{
new
MODON[128], ADMON[128], PROON[128],
MADMS[200], aAFK[30], M_O_D, A_D_M, P_R_O
;
for(new i = 0; i < MAX_PLAYERS; i++)
{
new NickMongolao[128];
GetPlayerName(i, NickMongolao);
//if(Geta se o player nao esta afk[i] == 0)
{
format(aAFK,sizeof aAFK,"{00DF00}Online");
}
//else if(Geta se o player esta afk[i] == 1)
{
format(aAFK,sizeof aAFK,"{FF8B17}Ausкnte");
}
//if(Verifica o nivel de ADM[i] == 1)
{
format(MODON,sizeof MODON,"%s%s[Moderador(a)] %s %s\n", MODON, NickMongolao, aAFK, pInfo[i][pFuncao]);
M_O_D ++;
}
//if(Verifica o nivel de ADM[i] == 2)
{
format(ADMON,sizeof ADMON,"%s%s[Administrador(a)] %s %s\n", ADMON, NickMongolao, aAFK, pInfo[i][pFuncao]);
A_D_M ++;
}
//if(Verifica o nivel de ADM[i] == 3)
{
format(PROON,sizeof PROON,"%s%s[Programador(a)] %s %s\n", PROON, NickMongolao, aAFK, pInfo[i][pFuncao]);
P_R_O ++;
}
}
if(M_O_D == 0 && A_D_M == 0 && P_R_O == 0)
{
format(MADMS,sizeof MADMS,"Nenhum Staff Online no momento.");
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_MSGBOX, "Membros Staffs Conectados", MADMS, "Fechar", "");
}
else
{
format(MADMS,sizeof MADMS,"%s%s%s", PROON, ADMON, MODON);
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "Membros Staffs Conectados", MADMS, "Ok", "Fechar");
}
return 1;
}
CMD:admins(playerid) { static string[3000]; string[0] = EOS; new bool:sucess = false; foreach(Player, i) { if(PlayerInfo[i][pAdmin] > 0) { GetPlayerName(i, sendername, sizeof(sendername)); if(admhide[i] == 0) { if(admtrampando[i] == 1) { switch(PlayerInfo[i][pAdmin]) { case 1337: format(string,sizeof(string),"%sAdmin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Master{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n",string, sendername,PlayerInfo[i][pFuncao]); case 3001: format(string,sizeof(string),"%sAdmin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Subdono{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n",string,sendername,PlayerInfo[i][pFuncao]); case 5000: format(string,sizeof(string),"%sAdmin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Fundador{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n",string,sendername,PlayerInfo[i][pFuncao]); case 1338: format(string,sizeof(string),"%sAdmin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Gerente{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n",string,sendername,PlayerInfo[i][pFuncao]); default: format(string,sizeof(string),"%sAdmin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}]\n",string, sendername,PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]); } if(!sucess) sucess = true; } else { switch(PlayerInfo[i][pAdmin]) { case 1337: format(string,sizeof(string),"%sAdmin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Master{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n", string,sendername,PlayerInfo[i][pFuncao]); case 3001: format(string,sizeof(string),"%sAdmin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Subdono{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n", string,sendername,PlayerInfo[i][pFuncao]); case 5000: format(string,sizeof(string),"%sAdmin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Fundador{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n", string,sendername,PlayerInfo[i][pFuncao]); case 1338: format(string,sizeof(string),"%sAdmin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Gerente{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n", string,sendername,PlayerInfo[i][pFuncao]); default: format(string,sizeof(string),"%sAdmin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}%d{B4B5B7}] Funзгo:[{FFFFFF}%s{B4B5B7}] {FFFFFF}[Jogando]\n", string, sendername, PlayerInfo[i][pAdmin],PlayerInfo[i][pFuncao]); } if(!sucess) sucess = true; } } } if(PlayerInfo[i][pAdminTemp] > 0) { if(admhide[i] == 0) { format(string,sizeof(string),"%sAdmin: {FFFFFF}%s {B4B5B7}Nнvel:[{FFFFFF}Temporбrio{B4B5B7}] {FFFFFF}%s\n",string, sendername, (admtrampando[i] == 1 ? ("") : ("Jogando"))); if(!sucess) sucess = true; } } } if(sucess) ShowPlayerDialog(playerid, 1010, DIALOG_STYLE_LIST, "Administradores Online",string,"Confirmar","Cancelar"); else SendClientMessage(playerid, 0xFF0000FF,"Erro: Nenhum administrador estб online."); return true; }
C:\Users\Narielson\Documents\Gamemode\AQUI\gamemodes\BPG.pwn(6398) : warning 215: expression has no effect
C:\Users\Narielson\Documents\Gamemode\AQUI\gamemodes\BPG.pwn(83602) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Narielson\Documents\Gamemode\AQUI\gamemodes\BPG.pwn(83602) : warning 215: expression has no effect
C:\Users\Narielson\Documents\Gamemode\AQUI\gamemodes\BPG.pwn(83602) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Narielson\Documents\Gamemode\AQUI\gamemodes\BPG.pwn(83614) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Narielson\Documents\Gamemode\AQUI\gamemodes\BPG.pwn(83614) : warning 215: expression has no effect
C:\Users\Narielson\Documents\Gamemode\AQUI\gamemodes\BPG.pwn(83614) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Narielson\Documents\Gamemode\AQUI\gamemodes\BPG.pwn(83619) : error 010: invalid function or declaration
C:\Users\Narielson\Documents\Gamemode\AQUI\gamemodes\BPG.pwn(83621) : error 010: invalid function or declaration
C:\Users\Narielson\Documents\Gamemode\AQUI\gamemodes\BPG.pwn(83624) : error 010: invalid function or declaration
C:\Users\Narielson\Documents\Gamemode\AQUI\gamemodes\BPG.pwn(83628) : error 010: invalid function or declaration
C:\Users\Narielson\Documents\Gamemode\AQUI\gamemodes\BPG.pwn(83629) : error 010: invalid function or declaration
C:\Users\Narielson\Documents\Gamemode\AQUI\gamemodes\BPG.pwn(83630) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
DEU ESSES ERROS |