[Ajuda] Erro ao copilar o gm - error 017: undefined symbol "inputtext"
#1

ALGUЙM ME TEM COMO ME AJUDA-LO PFV
PHP код:
Linha 2150 [     DOF2_SetString(arq,"Senha"inputtext); ] 
PHP код:
Linha 2210 [     else ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Seja bem vindo!","{FF2222}Senha incorreta! For favor tente novamente...","Login","Sair"); ] 
Код:
C:\Users\Henrique\Downloads\DM\harddm\gamemodes\hard.pwn(2150) : error 017: undefined symbol "inputtext"
C:\Users\Henrique\Downloads\DM\harddm\gamemodes\hard.pwn(2210) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#2

Poste o cуdigo completo e a callback que ele estб
Reply
#3

Provavelmente esse codigo nгo estб na OnDialogResponse.
Reply
#4

Quote:

DOF2_SetString(arq, "Senha", inputtext);

Tem certeza que vocк estб na callback OnDialogResponse?
Reply
#5

Quote:
Originally Posted by IlanZ
Посмотреть сообщение
Provavelmente esse codigo nгo estб na OnDialogResponse.
aki e tudo que esta Na Ondialogresponse

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    switch(
dialogid)
    {
        case 
DIALOG_HUD:
        {
            if(
response)
            {
                switch(
listitem)
                {
                    case 
0HudColor[playerid] = 0;
                    case 
1HudColor[playerid] = 1;
                    case 
2HudColor[playerid] = 2;
                    case 
3HudColor[playerid] = 3;
                    case 
4HudColor[playerid] = 4;
                    case 
5HudColor[playerid] = 5;
                }
                
Atualizar(playerid,HudColor[playerid]);
            }
        }
        case 
147:
        {
            if(
response)
            {
                switch(
listitem)
                {
                    case 
0SetPlayerColor(playerid,vermelho);
                    case 
1SetPlayerColor(playerid,verde);
                    case 
2SetPlayerColor(playerid,azul);
                    case 
3SetPlayerColor(playerid,amarelo);
                    case 
4SetPlayerColor(playerid,rosa);
                    case 
5SetPlayerColor(playerid,laranja);
                    case 
6SetPlayerColor(playerid,marrom);
                    case 
7SetPlayerColor(playerid,preto);
                    case 
8SetPlayerColor(playerid,cinza);
                    case 
9SetPlayerColor(playerid,branco);
                    case 
10SetPlayerColor(playerid,ciano);
                }
            }
        }
        case 
655:
        {
            if(
response)
            {
                if(!
strlen(inputtext))
                {
                    
ShowPlayerDialog(playerid,655,DIALOG_STYLE_INPUT,"{00FFAA}Reportar um bug","Faзa uma breve descriзгo do problema.\nExemplo:{00CC00}Jogador quando morre nгo renasce!","Reportar","Sair");
                }
                else
                {
                    new 
arq[20];
                    
format(arq,sizeof(arq ),"reportnumber.ini");
                    
DOF2_SetInt(arq,"Numero",DOF2_GetInt(arq,"Numero") + 1);
                    new 
novoarq [64];
                    
format(novoarq,sizeof(novoarq ),"report%d.ini",DOF2_GetInt(arq,"Numero"));
                    
DOF2_CreateFile(novoarq,"a");
                    
DOF2_SetString(novoarq,"Bug relatado",inputtext);
                    
DOF2_SetString(novoarq,"Nick in game",GetName(playerid));
                    new 
string[128];
                    
format(string,sizeof(string),"Obrigado pelo seu report, o HardAd agradece!",DOF2_GetInt(arq,"Numero"));
                    
SendClientMessage(playerid,amarelo,string);
                }
            }
        }
        case 
656:
        {
            if(
response)
            {
                if(!
strlen(inputtext))
                {
                    
ShowPlayerDialog(playerid,656,DIALOG_STYLE_INPUT,"{00FFAA}Enviar uma sugestгo","Faзa uma breve explicaзгo da sugestгo.\nExemplo:{00CC00}Nascer com M4.","Enviar","Sair");
                }
                else
                {
                    new 
arq [20];
                    
format(arq,sizeof(arq ),"reportnumber.ini");
                    
DOF2_SetInt(arq,"Numero",DOF2_GetInt(arq,"Numero") + 1);
                    new 
novoarq [64];
                    
format(novoarq,sizeof(novoarq ),"sugestao%d.ini",DOF2_GetInt(arq,"Numero"));
                    
DOF2_CreateFile(novoarq,"a");
                    
DOF2_SetString(novoarq,"Sugestao",inputtext);
                    
DOF2_SetString(novoarq,"Nick in game",GetName(playerid));
                    new 
string[128];
                    
format(string,sizeof(string),"Obrigado pela sua sugestao, o Hard DM agradece!",DOF2_GetInt(arq,"Numero"));
                    
SendClientMessage(playerid,amarelo,string);
                }
            }
        }
        case 
DIALOG_REGISTER:
        {
            if(
response)
            {
                if(!
strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Seja Bem Vindo!","Vocк precisa digitar uma senha!","Registrar","Sair");
                
CriarConta(playerid);
            }
            else
            {
                
SendClientMessage(playerid,branco,"Ok, entendemos a sua decisгo! Volte quando quiser!");
                
Kick(playerid);
            }
        }
        case 
DIALOG_LOGIN:
        {
            if(
response)
            {
                if(!
strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Seja Bem Vindo!","{FF2222}Vocк precisa digitar uma senha!","Logar","Sair");
                
CriarConta(playerid);
            }
            else
            {
                
SendClientMessage(playerid,branco,"Ok, entendemos a sua decisгo! Volte quando quiser!");
                
Kick(playerid);
            }
        }
    }
    return 
1;

Reply
#6

alguйm ??
Reply
#7

A linha 2150 estб dentro da stock CriarConta?
Reply
#8

Quote:
Originally Posted by Fakeger2
Посмотреть сообщение
A linha 2150 estб dentro da stock CriarConta?
Sim
PHP код:
//------------------------------------------------------------------------------//
stock CriarConta(playerid)
{
    new 
arq [36];
    
format(arq,36,"/acc/%s.ini",GetName(playerid));
    
DOF2_CreateFile(arq);
    
DOF2_SetString(arq,"Senha"inputtext);
    
DOF2_SetInt(arq,"Admin",0);
    
DOF2_SetInt(arq,"Skin",0);
    
DOF2_SetInt(arq,"Matou",0);
    
DOF2_SetInt(arq,"Morreu",0);
    
DOF2_SetInt(arq,"Clan",0);
    
DOF2_SetInt(arq,"Recorde",0);
    
DOF2_SetInt(arq,"RecordeSpree",0);
    
DOF2_SetInt(arq,"Losses",0);
    
DOF2_SetInt(arq"Ano"0);
    
DOF2_SetInt(arq"Mкs"0);
    
DOF2_SetInt(arq"Dia"0);
    
DOF2_SetInt(arq"Hora"0);
    
DOF2_SetInt(arq"Minuto",  0);
    new 
year,day,month;
    
getdate(yearmonthday);
    new 
str[32];
    
format(str32,"%02d/%02d/%d",day,month,year);
    
DOF2_SetString(arq,"RegisterDate",str);
    
DOF2_SaveFile();
    
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Seja bem vindo","{22FF22}Sua conta foi criada!\nDigite sua senha para continuar!","Login","Sair");
}
stock CarregarConta(playerid)
{
   new 
arq [36];
   
format(arq,36,"/acc/%s.ini",GetName(playerid));
   
Player[playerid][matou] = 0;
   
Player[playerid][morreu] = 0;
   
Player[playerid][admin] = 0;
   
Recorde[playerid] = 0;
   
Player[playerid][wins] = 0;
   
Player[playerid][losses] = 0;
   
RecordeSpree[playerid] = 0;
   
SetPlayerScore(playerid,0);
   
Player[playerid][wins] = DOF2_GetInt(arq,"Wins");
   
Player[playerid][losses] = DOF2_GetInt(arq,"Losses");
   
Recorde[playerid] = DOF2_GetInt(arq,"Recorde");
   
RecordeSpree[playerid] = DOF2_GetInt(arq,"RecordeSpree");
   
Player[playerid][matou] = DOF2_GetInt(arq,"Matou");
   
Player[playerid][morreu] = DOF2_GetInt(arq,"Morreu");
   
Player[playerid][admin] = DOF2_GetInt(arq,"Admin");
   
HudColor[playerid] = DOF2_GetInt(arq,"HUD");
   
SetPlayerScore(playerid,DOF2_GetInt(arq,"Score"));
   
DOF2_SetInt(arq,"Logins",DOF2_GetInt(arq,"Logins") + 1);
   new 
ip[16];
   
GetPlayerIp(playerid,ip,16);
   
DOF2_SetString(arq,"IP",ip);
   
DOF2_SaveFile();
   
skine[playerid] = DOF2_GetInt(arq,"Skin");
   
Logado[playerid] = true;
   
format(welcomesizeof(welcome), "{FFFFFF}(ONLINE):{B22222}%s{FFFFFF}ID:[%s]entrou no servidor Para mata uns noobґs.",GetName(playerid),playerid,DOF2_GetInt(arq,"Logins"));
   
SendClientMessageToAll(verdewelcome);
   
format(welcomesizeof(welcome), "{962020}(INFO) {FFFFFF}Vocк logou pela ъltima vez em {962020} %02d/%02d/%04d %02d:%02d"DOF2_GetInt(arq"Dia"),DOF2_GetInt(arq"Mes"),DOF2_GetInt(arq"Ano"),DOF2_GetInt(arq"Hora"),DOF2_GetInt(arq"Minuto"));
   
SendClientMessageToAll(verdewelcome);
   
Atualizar(playerid,HudColor[playerid]);
   
SpawnPlayer(playerid);
   }
    else 
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Seja bem vindo!","{FF2222}Senha incorreta! For favor tente novamente...","Login","Sair");
}
//------------------------------------------------------------------------------//
stock SalvarConta(playerid)
{
    new 
arq [36];
    
format(arq,sizeof arq,"/acc/%s.ini",GetName(playerid));
    
DOF2_SetInt(arq,"Senha",Player[playerid][senha]);
    
DOF2_SetInt(arq,"Matou",Player[playerid][matou]);
    
DOF2_SetInt(arq,"Morreu",Player[playerid][morreu]);
    
DOF2_SetInt(arq,"Admin",Player[playerid][admin]);
    
DOF2_SetInt(arq,"Skin",skine[playerid]);
    
DOF2_SetInt(arq,"Wins",Player[playerid][wins]);
    
DOF2_SetInt(arq,"Losses",Player[playerid][losses]);
    
DOF2_SetInt(arq,"RecordeSpree",RecordeSpree[playerid]);
    
DOF2_SetInt(arq,"Recorde",Recorde[playerid]);
    
DOF2_SetInt(arq,"Score",GetPlayerScore(playerid));
    
DOF2_SetInt(arq,"HUD",HudColor[playerid]);
    new 
ip[16];
    
GetPlayerIp(playerid,ip,sizeof ip);
    
DOF2_SetString(arq,"IP",ip);
    
DOF2_SaveFile();
}
//------------------------------------------------------------------------------// 
Reply
#9

PHP код:
stock CriarConta(playeridinputtext[]) 
assim deve solucionar, mas й melhor tu criar dentro do dialog msm
Reply
#10

Quote:
Originally Posted by Jonorusc
Посмотреть сообщение
PHP код:
stock CriarConta(playeridinputtext[]) 
assim deve solucionar, mas й melhor tu criar dentro do dialog msm
Tipo sou iniciante com pwn Tem como explicar como faзo para criar em dialog?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)