24.10.2011, 16:48
Perceba a diferenзa de um cуdigo identado, pra um nгo identado.
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
{
if(admhide[i] == 0)
{
GetPlayerName(i, sendername, sizeof(sendername));
new lolz[20];
if(PlayerInfo[i][pAdmin] == 1)
lolz = "Moderador";
else if(PlayerInfo[i][pAdmin] == 2)
lolz = "2";
else if(PlayerInfo[i][pAdmin] == 3)
lolz = "3";
else if(PlayerInfo[i][pAdmin] == 4)
lolz = "4";
else if(PlayerInfo[i][pAdmin] == 1337)
lolz = "Master";
else if(PlayerInfo[i][pAdmin] == 1338)
lolz = "Web Master/Mapper";
else if(PlayerInfo[i][pAdmin] == 1339)
lolz = "Gerente";
else if(PlayerInfo[i][pAdmin] == 1340)
lolz = "Sub-Dono";
else if(PlayerInfo[i][pAdmin] == 1341)
lolz = "Dono";
else if(PlayerInfo[i][pAdmin] == 1342)
lolz = "Poderoso/Scripter";
if(away[i] == 0)
{
if(admtrampando[i] == 1)
{
format(string, sizeof(string), "%s | Nivel: [%s] (Trabalhando)", sendername, lolz);
ShowPlayerDialog(playerid, 1003, DIALOG_STYLE_MSGBOX, "Administraзгo Online:", string, "Ok", "");
}
else
{
format(string, sizeof(string), "%s | Nivel: [%s] (Jogando)", sendername, lolz);
ShowPlayerDialog(playerid, 1004, DIALOG_STYLE_MSGBOX, "Administraзгo Online:", string, "Ok", "");
}
}
else
{
format(string, sizeof(string), "%s | Nivel: [%s] [AFK]", sendername, lolz);
ShowPlayerDialog(playerid, 1005, DIALOG_STYLE_MSGBOX, "Administraзгo Online:", string, "Ok", "");
}
}
}
}
return 1;
}