19.12.2016, 22:29
Da Esses erros aki
error 017: undefined symbol "modoafk"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Mais provavelmente essa parte
error 017: undefined symbol "modoafk"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Mais provavelmente essa parte
pawn Код:
if(modoafk[i] >= 1) { afktext = "[AFK]"; }
pawn Код:
CMD:admins(playerid, params[])
{
SendClientMessage(playerid, COLOR_PINK , "Administraзгo Online:");
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
{
new afktext[6];
if(modoafk[i] >= 1) { afktext = "[AFK]"; }
if(modoadmin[i] >= 1)
{
if(PlayerInfo[i][pAdmin] == 1 && PlayerInfo[i][pHelper] >= 1)
{
format(string, 256, "Admin{FFFFFF}: %s - {1E90FF}Nivel{FFFFFF}: [{D1F768}TEMPORБRIO{FFFFFF}] - {1E90FF}Modo{FFFFFF}: [{7FFF00}Trabalhando{FFFFFF}]%s",PlayerName(i),afktext);
SendClientMessage(playerid, 0x1E90FFFF, string);
}
else if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1336)
{
format(string, 256, "Admin{FFFFFF}: %s - {1E90FF}Nivel{FFFFFF}: [{FF9A00}%d{FFFFFF}] - {1E90FF}Modo{FFFFFF}: [{7FFF00}Trabalhando{FFFFFF}]%s",PlayerName(i),PlayerInfo[i][pAdmin],afktext);
SendClientMessage(playerid, 0x1E90FFFF, string);
}
else if(PlayerInfo[i][pAdmin] == 1337)
{
format(string, 256, "Admin{FFFFFF}: %s - {1E90FF}Nivel{FFFFFF}: [{FF4FA5}MASTER{FFFFFF}] - {1E90FF}Modo{FFFFFF}: [{7FFF00}Trabalhando{FFFFFF}]%s",PlayerName(i),afktext);
SendClientMessage(playerid, 0x1E90FFFF, string);
}
else if(PlayerInfo[i][pAdmin] == 3000)
{
format(string, 256, "Admin{FFFFFF}: %s - {1E90FF}Nivel{FFFFFF}: [{D69C89}SUB-DONO{FFFFFF}] - {1E90FF}Modo{FFFFFF}: [{7FFF00}Trabalhando{FFFFFF}]%s",PlayerName(i),afktext);
SendClientMessage(playerid, 0x1E90FFFF, string);
}
else if(PlayerInfo[i][pAdmin] >= 5000 && PlayerInfo[i][pAdmin] <= 2999)
{
format(string, 256, "Admin{FFFFFF}: %s - {1E90FF}Nivel{FFFFFF}: [{96FF00}DONO{FFFFFF}] - {1E90FF}Modo{FFFFFF}: [{7FFF00}Trabalhando{FFFFFF}]%s",PlayerName(i),afktext);
SendClientMessage(playerid, 0x1E90FFFF, string);
}
}
else
{
if(PlayerInfo[i][pAdmin] == 1 && PlayerInfo[i][pHelper] >= 1)
{
format(string, 256, "Admin{FFFFFF}: %s - {1E90FF}Nivel{FFFFFF}: [{D1F768}TEMPORБRIO{FFFFFF}] - {1E90FF}Modo{FFFFFF}: [{DB4BC6}Jogando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, 0x1E90FFFF, string);
}
else if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1336)
{
format(string, 256, "Admin{FFFFFF}: %s - {1E90FF}Nivel{FFFFFF}: [{FF9A00}%d{FFFFFF}] - {1E90FF}Modo{FFFFFF}: [{DB4BC6}Jogando{FFFFFF}]",PlayerName(i),PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, 0x1E90FFFF, string);
}
else if(PlayerInfo[i][pAdmin] == 1337)
{
format(string, 256, "Admin{FFFFFF}: %s - {1E90FF}Nivel{FFFFFF}: [{FF4FA5}MASTER{FFFFFF}] - {1E90FF}Modo{FFFFFF}: [{DB4BC6}Jogando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, 0x1E90FFFF, string);
}
else if(PlayerInfo[i][pAdmin] == 3000)
{
format(string, 256, "Admin{FFFFFF}: %s - {1E90FF}Nivel{FFFFFF}: [{D69C89}SUB-DONO{FFFFFF}] - {1E90FF}Modo{FFFFFF}: [{DB4BC6}Jogando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, 0x1E90FFFF, string);
}
else if(PlayerInfo[i][pAdmin] >= 5000 && PlayerInfo[i][pAdmin] <= 2999)
{
format(string, 256, "Admin{FFFFFF}: %s - {1E90FF}Nivel{FFFFFF}: [{96FF00}DONO{FFFFFF}] - {1E90FF}Modo{FFFFFF}: [{DB4BC6}Jogando{FFFFFF}]",PlayerName(i));
SendClientMessage(playerid, 0x1E90FFFF, string);
}
}
}
}
return 1;
}