24.10.2011, 16:31
Bom Sгo os Seguintes Warnings
Code :
Код:
(40172) warning 217: loose indentation (40182) warning 217: loose indentation (40222)warning 217: loose indentation (40246)warning 217: loose indentation
pawn Код:
// Linha : 40172
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];
// Aqi Linha : 40182
if(PlayerInfo[i][pAdmin] == 1)
{
lolz = "Divulgador";
}
if(PlayerInfo[i][pAdmin] == 2)
{
lolz = "Moderador";
}
if(PlayerInfo[i][pAdmin] == 3)
{
lolz = "Auxiliar";
}
if(PlayerInfo[i][pAdmin] == 4)
{
lolz = "Sub/Master";
}
if(PlayerInfo[i][pAdmin] == 1337)
{
lolz = "Master";
}
if(PlayerInfo[i][pAdmin] == 1338)
{
lolz = "Sub/Gerente";
}
if(PlayerInfo[i][pAdmin] == 1339)
{
lolz = "Gerente";
}
if(PlayerInfo[i][pAdmin] == 1340)
{
lolz = "Sub-Dono";
}
if(PlayerInfo[i][pAdmin] == 1341)
{
lolz = "Dono";
}
if(PlayerInfo[i][pAdmin] == 1342)
{
lolz = "Dono/Fundador";
}
//Aqi em Baixo Linha : 40222
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;
}
//Aqi in Baixo Linha : 40246
if(strcmp(cmdtext, "/afk", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid,COLOR_GREY," Vocк nгo й um admin!");
return 1;
}
if(admtrampando[playerid] < 1)
{
SendClientMessage(playerid,COLOR_GREY," Vocк nгo estб trabalhando, USE /trabalhar!");
return 1;
}
if(away[playerid] == 1)
{
SendClientMessage(playerid,COLOR_GREY," Vocк jб estб modo AFK, use /sairafk!");
}
else
{
SendClientMessage(playerid,COLOR_LIGHTRED," Vocк estб AFK agora!");
away[playerid] = 1;
}
return 1;
}