[AJUDA]ShowPlayerDialog
#1

Bom eu estava botando no meu GM o login Box ae so aparece isso aki de erro olha ae

C:\Users\Ricardo\Desktop\Brasil Xtreme Life\scriptfiles\properties\BNV.pwn(6317) : error 036: empty statement
C:\Users\Ricardo\Desktop\Brasil Xtreme Life\scriptfiles\properties\BNV.pwn(6323) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Ricardo\Desktop\Brasil Xtreme Life\scriptfiles\properties\BNV.pwn(6325) : error 029: invalid expression, assumed zero
C:\Users\Ricardo\Desktop\Brasil Xtreme Life\scriptfiles\properties\BNV.pwn(6332) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Ricardo\Desktop\Brasil Xtreme Life\scriptfiles\properties\BNV.pwn(6334) : error 029: invalid expression, assumed zero
C:\Users\Ricardo\Desktop\Brasil Xtreme Life\scriptfiles\properties\BNV.pwn(633 : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Ricardo\Desktop\Brasil Xtreme Life\scriptfiles\properties\BNV.pwn(6344) : error 029: invalid expression, assumed zero
C:\Users\Ricardo\Desktop\Brasil Xtreme Life\scriptfiles\properties\BNV.pwn(12630) : error 017: undefined symbol "ShowPlayerDialog"
C:\Users\Ricardo\Desktop\Brasil Xtreme Life\scriptfiles\properties\BNV.pwn(12659) : error 017: undefined symbol "ShowPlayerDialog"



Ieaw oq faзo?
Reply
#2

Poste as linhas , n tenho bola de cristal
Reply
#3

Usa os includes da versгo 0.3 do SA-MP.
Reply
#4

Ae as linhas

//---------------------------<[ OnDialogResponse ]>--------------------------------------------------------

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new sendername[MAX_PLAYER_NAME];
new string[128];
if(response)
{
if(dialogid == 12346 || dialogid == 12347)
{
if(strlen(inputtext))
{
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
//Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
else
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname) );
format(loginstring,sizeof(loginstring),"Perigo!\nP or favor digite a senha corretamente!:",loginname);
ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT ,"Logar",loginstring,"Logar","Sair");
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 5) { Ban(playerid); }
}
}
if(dialogid == 12345)
{
if(strlen(inputtext))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "That Username is already taken, please choose a different one.");
fclose(hFile);
return 1;
}
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
//Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
else
{
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Bem Vindo, %s\nVocк nгo tem conta.\nPor favor registre-se:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT ,"Registrar",regstring,"Registrar","Sair");
}
}
}
else
{
Kick(playerid);
}
return 1;
}






----------------------------------------------------------------------------------------------------------------------------------

public OnPlayerRequestClass(playerid, classid)
{
ClearChatbox(playerid, 10);
SendClientMessage(playerid, COLOR_GREEN, " ~ Bem Vindo ao Brasil Xtreme Life! ~");
SendClientMessage(playerid, COLOR_RED, " ");
SendClientMessage(playerid, COLOR_YELLOW2, " ");
SendClientMessage(playerid, COLOR_YELLOW2, " ");
SendClientMessage(playerid, COLOR_YELLOW2, " ");
SendClientMessage(playerid, COLOR_YELLOW2, " ");
SendClientMessage(playerid, COLOR_YELLOW2, " ");
SendClientMessage(playerid, COLOR_YELLOW2, " ");
if (gPlayerAccount[playerid] != 0);
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname) );
format(loginstring,sizeof(loginstring),"Bem Vindo, %s\nEsse nick й registrado.\nVocк pode logar-se:",loginname);
ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT ,"Logar",loginstring,"Logar","Sair");
}
else
{
gPlayerAccount[playerid] = 0;
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Bem Vindo, %s\nVocк nгo tem conta.\nPor favor registre-se:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT ,"Registrar",regstring,"Registrar","Sair");
}
else
{

SendClientMessage(playerid, COLOR_WHITE, "USE: Voce pode se registrar - Para cadastrar sua conta em nosso server");
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT ,"Registrar",regstring,"Registrar","Sair");

//PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
SetPlayerTeamFromClass(playerid,classid);
}
else SpawnPlayer(playerid);
return true;


----------------------------------------------------------------------------------------------------------------------------------

Essas sгo as linhas
Reply
#5

Quote:
Originally Posted by RoamPT
Usa os includes da versгo 0.3 do SA-MP.
Nгo prescisa das linhas, faзa o que o Roam falou, vocк nгo estб usando o include a_samp da 0.3 que й qual tem o ShowPlayerDialog
Reply
#6

Quote:
Originally Posted by SuB_ZeRo0_
Quote:
Originally Posted by RoamPT
Usa os includes da versгo 0.3 do SA-MP.
Nгo prescisa das linhas, faзa o que o Roam falou, vocк nгo estб usando o include a_samp da 0.3 que й qual tem o ShowPlayerDialog
E oq eu boto pra ter o include a_samp da 0.3?
Reply
#7

Quote:
Originally Posted by Baddark2131
Quote:
Originally Posted by SuB_ZeRo0_
Quote:
Originally Posted by RoamPT
Usa os includes da versгo 0.3 do SA-MP.
Nгo prescisa das linhas, faзa o que o Roam falou, vocк nгo estб usando o include a_samp da 0.3 que й qual tem o ShowPlayerDialog
E oq eu boto pra ter o include a_samp da 0.3?
Baixe o Server 0.3, ele vem com as includes do 0.3.
Reply
#8

Quote:
Originally Posted by RoamPT
Usa os includes da versгo 0.3 do SA-MP.
as includes 0.3 + 70 (+/-):

http://forum.sa-mp.com/index.php?topic=165226.0
Reply
#9

ae mano posta o teu sistema de login faz um tempгo q eu procuro mais eu nгo acho. posta ai vala.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)