[Ajuda] Erro no ShowPlayerDialog
#1

Ola, eu baixei um FS aqui no Furum de um Sistema de Registro, ai na hora de compilar aparecia "undefined symbol: ShowPlayerDialog" (ou alguma coisa assim). Procurei uma solucao para esse erro, baixei a include "dini" e agora da esse erro:

PHP код:
C:\Users\Usuario\Desktop\Nova pasta\pawno\include\dini.inc(24) : fatal error 100cannot read from file"dutils2"
Compilation aborted.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Alguem me ajuda?






aa, e tambem me ensinem a colocar PawnCode?
Reply
#2

....


Код:
C:\Users\Usuario\Desktop\Nova pasta\pawno\include\dini.inc(24) : fatal error 100: cannot read from file: "dutils2"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#3

Falta a include "dutils2" agora
Reply
#4

ae da esse erro

Код:
C:\Users\Usuario\Downloads\Registro (1).pwn(44) : error 017: undefined symbol "tring"
C:\Users\Usuario\Downloads\Registro (1).pwn(44) : error 035: argument type mismatch (argument 1)
C:\Users\Usuario\Downloads\Registro (1).pwn(45) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Usuario\Downloads\Registro (1).pwn(45) : warning 202: number of arguments does not match definition
C:\Users\Usuario\Downloads\Registro (1).pwn(45) : error 001: expected token: ",", but found ";"
C:\Users\Usuario\Downloads\Registro (1).pwn(50) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Usuario\Downloads\Registro (1).pwn(79) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse")
C:\Users\Usuario\Downloads\Registro (1).pwn(91) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Usuario\Downloads\Registro (1).pwn(107) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Usuario\Downloads\Registro (1).pwn(127) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Usuario\Downloads\Registro (1).pwn(146) : error 017: undefined symbol "ShowPlayerDialog"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Errors.
Reply
#5

Posta as linhas dos erros q jб resolvemos
Reply
#6

ta ae o FS inteiro:

Quote:

//creditos iLinux

#include <a_samp>
#include <dini>

new Logado[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
new log[35];
new regstring[130];
format(log,sizeof log,"CONTAS/%s.ini",Nome(playerid));
if(!dini_Exists(log))
{
SendClientMessage(playerid,0x00FF00FF,"Seja bem vindo pela primeira vez. Por favor digite uma senha para se registrar.");
format(regstring,sizeof(regstring),"{FFE4E1}%s, vocк ainda nгo possui uma conta em nosso banco de dados.\nPor favor digite uma senha para se registrar.",Nome(playerid));
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"{8 7CEEB}Registrar",regstring,"Registrar","Sair");
return 1;
}
SendClientMessage(playerid,0x00FFFFFF,"Digite sua senha no diбlogo abaixo para poder logar.");
format(regstring,sizeof(regstring),"{FAF0E6}%s, vocк jб possui uma conta no banco de dados.\nDigite sua senha abaixo para poder logar.",Nome(playerid));
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"{F 5F5F5}Logar",regstring,"Logar","Sair");
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
if(Logado[playerid] == 0)
{
SendClientMessage(playerid,0xFFFF45,"Antes de Spawnar logue-se.");
return 0;
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new arq[30];
format(arq,sizeof arq,"CONTAS/%s.ini",Nome(playerid));
if(dialogid == 1)
{
if(response == 1)
{
new regstring[130];
dini_Create(arq);
SendClientMessage(playerid,0xFFFF47,"Sua conta foi registrada com sucesso! Logue-se no diбlogo abaixo.");
format(regstring,sizeof(regstring),"{FAF0E6}Parabй ns %s, vocк registrou sua conta.\nDigite sua senha abaixo para poder logar.",Nome(playerid));
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"{F 5F5F5}Logar",regstring,"Logar","Sair");
dini_IntSet(arq,"Senha",strval(inputtext));
return 1;
}
SendClientMessage(playerid,0xFFFF00,"Vocк usou a opзгo 'Sair' e foi kickado pelo servidor!");
Kick(playerid);

}
else if(dialogid == 2)
{
if(response == 1)
{
if(dini_Int(arq,"Senha") == strval(inputtext))
{
//Aqui coloca-se as variбveis do texto, como Level, dinheiro,etc.
SendClientMessage(playerid,0xFFFF43,"Vocк logou no servidor com sucesso!");
Logado[playerid] = 1;
return 1;
}
SendClientMessage(playerid,0xFFFF88,"Vocк digitou a senha incorretamente. Digite-a novamente.");
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"{F 5F5F5}Logar","Digite a senha corretamente.","Logar","Sair");
return 1;
}
SendClientMessage(playerid,0xFFFF00,"Vocк usou a opзгo 'Sair' e foi kickado pelo servidor!");
Kick(playerid);
}
return 1;
}
stock Nome(playerid)
{
new nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
return nome;
}
//creditos iLinux

Reply
#7

aqui compilo direito maninho vo upar minhas pasta de include ai daqui a poco edito blz
Reply
#8

Cara aqui compilou certinho o.O
Sу pode ser suas includes, tens de atualizб-las
Reply
#9

agr da esse erro:


Код:
C:\Users\Usuario\Desktop\Login\Login.pwn(16) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Usuario\Desktop\Login\Login.pwn(21) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Usuario\Desktop\Login\Login.pwn(33) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse")
C:\Users\Usuario\Desktop\Login\Login.pwn(45) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Usuario\Desktop\Login\Login.pwn(65) : error 017: undefined symbol "ShowPlayerDialog"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Код:
[16] ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"{87CEEB}Registrar",regstring,"Registrar","Sair");

[21] ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"{F5F5F5}Logar",regstring,"Logar","Sair");

[33] public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

[45] ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"{F5F5F5}Logar",regstring,"Logar","Sair");

[65] ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"{F5F5F5}Logar","Digite a senha corretamente.","Logar","Sair");
Reply
#10

Atualiza as Includes ae
http://www.4shared.com/rar/yQMWJbTG/include_Don.html
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)