[Ajuda] Problema com esses erros
#1

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
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;
 }
Reply
#2

Falta a variбvel modoafk

PHP код:

new modoafk[MAX_PLAYERS]; 
Reply
#3

Ainda Continua Com esses erros
Reply
#4

PHP код:
if(modoafk[i]) { afktext "[AFK]"; } 
Reply
#5

Vocкs Me Ajudaram A resolver um agora falta o outros obs: desculpa ae mas eu sou muito noob aki no pawn

error 017: undefined symbol "modoadmin"

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
Reply
#6

Quote:
Originally Posted by GabrielPlay
Посмотреть сообщение
Vocкs Me Ajudaram A resolver um agora falta o outros obs: desculpa ae mas eu sou muito noob aki no pawn

error 017: undefined symbol "modoadmin"

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
PHP код:

new modoadmin[MAX_PLAYERS]; 
Reply
#7

й a mesma coisa que do erro antigo, sу mudou o nome para modoadmin, fassa a mesma coisa que fez antes uй
Reply
#8

Claro vc ta certo lord me explica como vou fazer esse if(modoafk[i]) { afktext = "[AFK]"; }

Copiado para esse

if(modoadmin[i] >= 1)? explica ae
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)