[Ajuda] varios erros ao compilar
#1

oque tem de errando ai :


Код:
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(334) : error 033: array must be indexed (variable "Textdraw2")
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(337) : error 017: undefined symbol "loginname"
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(337) : error 017: undefined symbol "loginname"
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(337) : error 029: invalid expression, assumed zero
C:\Users\Leonardo\Desktop\BPS\gamemodes\BPS.pwn(337) : fatal error 107: too many error messages on one line


Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(_:clickedid != INVALID_TEXT_DRAW)
    {
      if(clickedid == Textdraw2)
      {
              new plname[MAX_PLAYER_NAME];
              GetPlayerName(playerid,loginname,sizeof(loginname));
              GetPlayerName(playerid, plname, sizeof(plname));
         format(gstring,sizeof(gstring), "Contas/%s.ini", plname);
              if(DOF2_FileExists(gstring))
              {
                 // SEU SISTEMA DE LOGIN
                        }
                        else
                        {
                              ShowPlayerDialog(playerid, 9632, DIALOG_STYLE_MSGBOX, "ERRO", "{FFFFFF}Vocк nгo tem uma conta!", "Ok", "");
              }
              return 1;
      }
      if(clickedid == Textdraw4)
               {
         new plname[MAX_PLAYER_NAME];
              GetPlayerName(playerid,loginname,sizeof(loginname));
              GetPlayerName(playerid, plname, sizeof(plname));
         format(gstring,sizeof(gstring), "Contas/%s.ini", plname);
              if(DOF2_FileExists(gstring))
              {
                     ShowPlayerDialog(playerid, 9632, DIALOG_STYLE_MSGBOX, "ERRO", "{FFFFFF}Vocк tem uma conta, logue-se!", "Ok", "");
              }
              else
              {
                 // SEU SISTEMA DE LOGIN AQUI
                        }
              return 1;
      }
      if(clickedid == Textdraw4)
      {
                SendClientMessage(playerid, 0xFFFFFFAA, "Vocк foi kickado por nгo se registrar/logar!");
                     return Kick(playerid);
      }
      return 1;
   }
        return 1;
}
HELP - ME
Reply


Messages In This Thread
varios erros ao compilar - by LeonardoAlberto - 20.11.2018, 17:05
Re: varios erros ao compilar - by ipsLuan - 20.11.2018, 17:11
Re: varios erros ao compilar - by LeonardoAlberto - 20.11.2018, 17:27
Re: varios erros ao compilar - by Electrifying - 20.11.2018, 17:54
Re: varios erros ao compilar - by LeonardoAlberto - 20.11.2018, 18:44
Re: varios erros ao compilar - by Electrifying - 20.11.2018, 18:54
Re: varios erros ao compilar - by Electrifying - 20.11.2018, 20:20
Re: varios erros ao compilar - by LeonardoAlberto - 20.11.2018, 20:52

Forum Jump:


Users browsing this thread: 1 Guest(s)