[Ajuda] Como arrumar isso?
#1

Olб pessoal, bom estava fazendo uma tela de login em textdrawn, ai tive alguns erros, mais consegui solucionar, mais ai apareceu esses aqui, eu tentei arruma-los mais parece que quanto mais eu mecho neles mais abre brechas para outros problemas!

aqui estб os erros:

Код:
 error 010: invalid function or declaration
error 010: invalid function or declaration
error 021: symbol already defined: "format"
error 010: invalid function or declaration
error 054: unmatched closing brace ("}")
 error 010: invalid function or declaration
 error 010: invalid function or declaration
: error 021: symbol already defined: "format"
error 010: invalid function or declaration
error 054: unmatched closing brace ("}")
 error 010: invalid function or declaration
error 010: invalid function or declaration
error 010: invalid function or declaration
error 054: unmatched closing brace ("}")
error 010: invalid function or declaration
error 010: invalid function or declaration
 error 054: unmatched closing brace ("}")
: error 010: invalid function or declaration
 : error 054: unmatched closing brace ("}")
: error 010: invalid function or declaration
: error 010: invalid function or declaration
: error 021: symbol already defined: "TextDrawHideForPlayer"
error 021: symbol already defined: "KickBPS"
 error 010: invalid function or declaration
error 021: symbol already defined: "SelectTextDraw"
error 010: invalid function or declaration
PHP код:
if(!gPlayerLogged[playerid]){
    if(
clickedid == Textdraw6){//Logar
        
format(Fala,sizeof(Fala),Pasta_Contas,NomePlayer(playerid));
        if(
DOF2_FileExists(Fala))
        {
            
ForT:logar(playerid,"");
     }
        else 
ShowPlayerDialog(playerid8724DIALOG_STYLE_MSGBOX"{FFFF00}ERRO""{FF0000}* Vocк Nao Tem Uma Conta !""OK","");
    }
    else if(
clickedid == Textdraw8){//Registrar
        
format(Fala,sizeof(Fala),Pasta_Contas,NomePlayer(playerid));
        if(!
DOF2_FileExists(Fala))
        {
            
ForT:registrar(playerid,"");
        }
        else 
ShowPlayerDialog(playerid8724DIALOG_STYLE_MSGBOX"{FFFF00}ERRO""{FF0000}* Vocк Ja Tem Uma Conta !""OK","");
    }
    else if(
clickedid == Textdraw10){//Regras
           
ForT:regras(playerid,"");
    }
    else if(
clickedid == Textdraw13){//Organizaзхes
        
ForT:infoserver(playerid,"");
    }
    else if(
clickedid == Textdraw15){//Informaзхes+
        
ForT:helpers(playerid);
    }
    else if(
clickedid == Textdraw13){//Sair
     
for(new x!= MAX_TEXT_DRAWSx++){
      
TextDrawHideForPlayer(playeridText:x);
            }
            
Kick(playerid);
        }
       else{
            
SelectTextDraw(playerid,0xFFFFFFFF);
        }
        return 
1;
    } 
eu adicionei o "fala" mais nгo posso remover se nгo pode dar algum erro no login
Reply
#2

Й sу ler o erro que vocк identifica o que й.

Tabule o cуdigo que vocк saberб arrumar.
Isso й erro de chaves { }.
Provavelmente abriu e esqueceu de fechar (ou vice-versa).
Reply
#3

Estб tudo certinho! abrindo e fechando, eu realmente nгo sei oque fazer.
Reply
#4

Quote:
Originally Posted by Ir123
Посмотреть сообщение
Estб tudo certinho! abrindo e fechando, eu realmente nгo sei oque fazer.


Ele tem um erro de cуdigo, ele usa as mesmas verificaзхes para coisas diferentes, como eu vejo no comentбrio.

Mas duvido que cause o erro
Reply
#5

Oque eu devo fazer agora? eu nгo tenho backup da gamemode, e nгo consigo arrumar o cуdigo ;-;
Reply
#6

Quote:
Originally Posted by Ir123
Посмотреть сообщение
Oque eu devo fazer agora? eu nгo tenho backup da gamemode, e nгo consigo arrumar o cуdigo ;-;
manda ai a public toda que ta dando erro e eu tento arrumar
Reply
#7

Veja desta forma:

PHP код:
if(!gPlayerLogged[playerid])
{
    if(
clickedid == Textdraw6)//logar
    
{
        
format(Fala,sizeof(Fala),Pasta_Contas,NomePlayer(playerid));
        if(
DOF2_FileExists(Fala))
        {
            
ForT:logar(playerid,"");
         }
        else 
ShowPlayerDialog(playerid8724DIALOG_STYLE_MSGBOX"{FFFF00}ERRO""{FF0000}* Vocк Nao Tem Uma Conta !""OK","");
    }
    else if(
clickedid == Textdraw8)
    {
//Registrar
        
format(Fala,sizeof(Fala),Pasta_Contas,NomePlayer(playerid));
        if(!
DOF2_FileExists(Fala))
        {
            
ForT:registrar(playerid,"");
        }
        else 
ShowPlayerDialog(playerid8724DIALOG_STYLE_MSGBOX"{FFFF00}ERRO""{FF0000}* Vocк Ja Tem Uma Conta !""OK","");
    }
    else if(
clickedid == Textdraw10)
    {
//Regras
           
ForT:regras(playerid,"");
    }
    else if(
clickedid == Textdraw13)
    {
//Organizaзхes
        
ForT:infoserver(playerid,"");
    }
    else if(
clickedid == Textdraw15)
    {
//Informaзхes+
        
ForT:helpers(playerid);
    }
    else if(
clickedid == Textdraw13)
    {
//Sair
         
for(new x!= MAX_TEXT_DRAWSx++)
         {
             
TextDrawHideForPlayer(playeridText:x);
        }
        
Kick(playerid);
        return 
1;
    }
    if(
clickedid == Text:INVALID_TEXT_DRAW)
    {
        if(
GetPVarInt(playerid"vMochila") && !GetPVarInt(playerid"guardando"))
        {
            
HideMochila(playerid);
        }
        if(
GetPVarInt(playerid"vportamala") && !GetPVarInt(playerid"guardando"))
        {
            
HidePortaMala(playerid);
        }
    }
    if(
GetPVarInt(playerid"skinc_active") == 0) return 0;
    if(
clickedid == Text:INVALID_TEXT_DRAW)
    {
        
DestroySelectionMenu(playerid);
        
SetPVarInt(playerid"skinc_active"0);
        
PlayerPlaySound(playerid10850.00.00.0);
        return 
1;
    }
    return 
1;

Se nгo funcionar, poste as linhas dos erros e os erros. Fica mais fбcil para nуs poder te ajudar.
Reply
#8

Continua dando o mesmo erro.
Reply
#9

Veja se resolve:

pawn Код:
//----------------------------------------------------------
new gPlayerLogged[MAX_PLAYERS];
new Text:Textdraw0;
new Text:Textdraw1;
new Text:ASHU;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
new Text:Textdraw10;
new Text:Textdraw11;
new Text:Textdraw12;
new Text:Textdraw13;
new Text:Textdraw14;
new Text:Textdraw15;
new Text:Textdraw16;
new Text:Textdraw17;
new Text:Textdraw18;
new Text:Textdraw19;
if(!gPlayerLogged[playerid])
{
    if(clickedid == Textdraw6)//logar
    {
        format(Fala,sizeof(Fala),Pasta_Contas,NomePlayer(playerid));

        if(DOF2_FileExists(Fala))
            ForT:logar(playerid,"");
        else
            ShowPlayerDialog(playerid, 8724, DIALOG_STYLE_MSGBOX, "{FFFF00}ERRO", "{FF0000}* Vocк Nao Tem Uma Conta !", "OK","");
    }
    else if(clickedid == Textdraw8)//Registrar
    {
        format(Fala,sizeof(Fala),Pasta_Contas,NomePlayer(playerid));

        if(!DOF2_FileExists(Fala))
            ForT:registrar(playerid,"");
        else
            ShowPlayerDialog(playerid, 8724, DIALOG_STYLE_MSGBOX, "{FFFF00}ERRO", "{FF0000}* Vocк Ja Tem Uma Conta !", "OK","");
    }
    else if(clickedid == Textdraw10)//Regras
        ForT:regras(playerid,"");
    else if(clickedid == Textdraw13)//Organizaзхes
        ForT:infoserver(playerid,"");
    else if(clickedid == Textdraw15)//Informaзхes+
        ForT:helpers(playerid);
    else if(clickedid == Textdraw13)//Sair
    {
        for(new x; x != MAX_TEXT_DRAWS; x++)
            TextDrawHideForPlayer(playerid, Text:x);

        Kick(playerid);
        return 1;
    }
    else if(clickedid == Text:INVALID_TEXT_DRAW)
    {
        if(GetPVarInt(playerid, "vMochila") && !GetPVarInt(playerid, "guardando"))
            HideMochila(playerid);
        else if(GetPVarInt(playerid, "vportamala") && !GetPVarInt(playerid, "guardando"))
            HidePortaMala(playerid);
    }
   
    if(GetPVarInt(playerid, "skinc_active") == 0)
        return 0;

    // Handle: They cancelled (with ESC)
    if(clickedid == Text:INVALID_TEXT_DRAW)
    {
        DestroySelectionMenu(playerid);
        SetPVarInt(playerid, "skinc_active", 0);
        PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
        return 1;
    }
    return 1;
}

//----------------------------------------------------------
Se nгo resolver, poste o cуdigo por completo de onde estгo sendo apontado os erros, de preferкncia a public inteira.
Reply
#10

Agora dб esses erros:

(2960) : error 010: invalid function or declaration
(2962) : error 010: invalid function or declaration
(2966) : error 010: invalid function or declaration
(296 : error 010: invalid function or declaration
(2971) : error 010: invalid function or declaration
(2975) : error 010: invalid function or declaration
(2977) : error 010: invalid function or declaration
(2980) : error 010: invalid function or declaration
(2982) : error 010: invalid function or declaration
(2984) : error 010: invalid function or declaration
(2986) : error 010: invalid function or declaration
(298 : error 010: invalid function or declaration
(2991) : error 021: symbol already defined: "KickBPS"
(2992) : error 010: invalid function or declaration
(2994) : error 010: invalid function or declaration
(2996) : error 010: invalid function or declaration
(2997) : error 021: symbol already defined: "HideMochila"
(299 : error 010: invalid function or declaration
(2999) : error 021: symbol already defined: "HidePortaMala"
(3002) : error 010: invalid function or declaration
(3003) : error 010: invalid function or declaration
(3006) : error 010: invalid function or declaration
(3009) : error 021: symbol already defined: "SetPVarInt"
(3011) : error 010: invalid function or declaration
(3013) : error 010: invalid function or declaration
(7416) : error 021: symbol already defined: "gPlayerLogged"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)