SA-MP Forums Archive
[Ajuda] Problema com esses erros - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Problema com esses erros (/showthread.php?tid=624626)



Problema com esses erros - GabrielPlay - 19.12.2016

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;
 }



Re: Problema com esses erros - ZEDD666 - 19.12.2016

Falta a variбvel modoafk

PHP код:

new modoafk[MAX_PLAYERS]; 



Re: Problema com esses erros - GabrielPlay - 20.12.2016

Ainda Continua Com esses erros


Re: Problema com esses erros - PT - 20.12.2016

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



Re: Problema com esses erros - GabrielPlay - 23.12.2016

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


Re: Problema com esses erros - ZEDD666 - 23.12.2016

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]; 



Re: Problema com esses erros - iLordGG - 23.12.2016

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


Re: Problema com esses erros - GabrielPlay - 23.12.2016

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