SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 11/08/2019, 11:30 PM   #1
l3eksz
Big Clucker
 
l3eksz's Avatar
 
Join Date: Nov 2018
Location: Behind you
Posts: 165
Reputation: 2
Red face erro de Invalid Declaration

Ao tentar compilar o meu GM eu recebo o erro error 010: invalid function or declaration da linha 330 a 351, que sao essas que vou mostrar abaixo

pawn Code:
new name[MAX_PLAYER_NAME], file[256], string[128];
        GetPlayerName(playerid, name, sizeof(name));
        format(file, sizeof(file), PATH, name);
        if(!response) return Kick(playerid);
        if (!strlen(inputtext)) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "{2AC0D6}Login", "{FFFFFF}Obrigado por voltar em nosso servidor!\nDigite sua senha para logar", "Logar", "Sair");
        new tmp;
        tmp = dini_Int(file, "Password");
        if(udb_hash(inputtext) != tmp)
       {
            SendClientMessage(playerid, -1, "{FF0000}Senha errada! Digite cuidadosamente");
            ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "-->{2AC0D6}Login", "{FFFFFF}Obrigado por voltar em nosso servidor!\nDigite sua senha para logar", "Logar", "Sair");
        }
        else
        {
            gPlayerLogged[playerid] = 1;
            PlayerInfo[playerid][pAdmin] = dini_Int(file, "AdminLevel");
            SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
            GivePlayerMoney(playerid, dini_Int(file, "Money")-GetPlayerMoney(playerid));
        }
    }
}
    return 1;

Normalmente esse erro eh quando falta um bracket, mas n consigo achar nenhum bracket faltando, +rep pra quem conseguir ajudar
__________________
--------- 𝑄𝑢𝑒 𝑎 𝑡𝑒𝑚𝑝𝑒𝑠𝑡𝑎𝑑𝑒 𝑛𝑜𝑠 𝑔𝑢𝑖𝑒 𝑒𝑚 𝑚𝑒𝑢 𝑑𝑒𝑠𝑝𝑒𝑟𝑡𝑎𝑟 ---------
l3eksz is offline   Reply With Quote
Old 11/08/2019, 11:48 PM   #2
iAplle
Big Clucker
 
iAplle's Avatar
 
Join Date: Jul 2018
Location: São Paulo
Posts: 69
Reputation: 4
Default Re: erro de Invalid Declaration

Tenta assim

PHP Code:
new name[MAX_PLAYER_NAME], file[256], string[128];
        
GetPlayerName(playeridnamesizeof(name));
        
format(filesizeof(file), PATHname);
        if(!
response) return Kick(playerid);
        if (!
strlen(inputtext)) return ShowPlayerDialog(playerid1DIALOG_STYLE_INPUT"{2AC0D6}Login""{FFFFFF}Obrigado por voltar em nosso servidor!\nDigite sua senha para logar""Logar""Sair");
        new 
tmp;
        
tmp dini_Int(file"Password");
        if(
udb_hash(inputtext) != tmp)
       {
            
SendClientMessage(playerid, -1"{FF0000}Senha errada! Digite cuidadosamente");
            
ShowPlayerDialog(playerid1DIALOG_STYLE_INPUT"-->{2AC0D6}Login""{FFFFFF}Obrigado por voltar em nosso servidor!\nDigite sua senha para logar""Logar""Sair");
        }
        else
        {
            
gPlayerLogged[playerid] = 1;
            
PlayerInfo[playerid][pAdmin] = dini_Int(file"AdminLevel");
            
SetPlayerScore(playeridPlayerInfo[playerid][pScore]);
            
GivePlayerMoney(playeriddini_Int(file"Money")-GetPlayerMoney(playerid));
        }
    }
    return 
1;

__________________
Code:
[GameMode] Gamemode BASE/RPG
iAplle is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Erro error 010: invalid function or declaration henriqueTL Português/Portuguese 4 18/08/2017 05:21 PM
[Ajuda] error: 010: invalid function or declaration me ajudem com esse erro Marlon307 Português/Portuguese 12 17/04/2014 04:38 PM
[Ajuda] Erro invalid function or declaration xTuNinG Português/Portuguese 1 31/12/2013 06:18 PM
[Ajuda] Erro 010: invalid function or declaration smithz0r Português/Portuguese 3 25/11/2012 03:13 PM
[AJUDA] ERRO invalid function or declaration EoProzinhO Português/Portuguese 4 25/08/2011 02:53 PM


All times are GMT. The time now is 09:20 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.