SA-MP Forums Archive
[Ajuda] Ajuda sistema de registro e login - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Ajuda sistema de registro e login (/showthread.php?tid=635020)



Ajuda sistema de registro e login - Brenopwn - 30.05.2017

Erro:



Код:
new file[50], aname[MAX_PLAYER_NAME], string[250];
	GetPlayerName(playerid, aname,sizeof(aname));
	format(file, sizeof(file), "Contas/%s.ini", aname);
   	if(DOF2_FileExists(file))
   	{
   	    // se exitir
    	format(string, sizeof(string), "Ola %s seja bem vindo novamente \n Digite sua senha abaixo para Logar", aname);
		ShowPlayerDialog(playerid, DIALOG_LOGIN DIALOG_STYLE_PASSWORD, "Digite sua senha", string, "Login", "Sair");
    }
    else
    {
        // se nao exisitr
        format(string, sizeof(string), "Ola %s seja bem vindo pela primeira vez \n Digite sua senha abaixo para se resgistrar", aname);
		ShowPlayerDialog(playerid, DIALOG_REGISTRO DIALOG_STYLE_PASSWORD, "Digite sua senha", string, "Registrar", "Cancelar");
	return 1;
}



Re: Ajuda sistema de registro e login - DarkBr - 30.05.2017

Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Digite sua senha", string, "Login", "Sair");//ERRO 1 SEM VIRGULA MAS JБ COLOQUEI

ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "Digite sua senha", string, "Registrar", "Cancelar"); ERRO 1 SEM VIRGULA MAS JБ COLOQUEI

PRONTO


Re: Ajuda sistema de registro e login - Brenopwn - 30.05.2017

Com as virgulas da esse monte de erro
Quote:

C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(41) : warning 225: unreachable code
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(327) : warning 216: nested comment
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(356) : warning 217: loose indentation
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(357) : warning 217: loose indentation
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(360) : warning 217: loose indentation
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(360) : error 029: invalid expression, assumed zero
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(360) : error 004: function "ALSS_OnPlayerConnect" is not implemented
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(436) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(444) : warning 225: unreachable code
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(444) : warning 217: loose indentation
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(447) : warning 225: unreachable code
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(447) : error 029: invalid expression, assumed zero
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(447) : error 004: function "OnPlayerDisconnect" is not implemented
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(452) : warning 225: unreachable code
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(452) : error 029: invalid expression, assumed zero
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(452) : error 004: function "ALSS_OnPlayerSpawn" is not implemented
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(457) : warning 225: unreachable code
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(457) : error 029: invalid expression, assumed zero
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(457) : error 004: function "ALSS_OnPlayerDeath" is not implemented
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(459) : error 017: undefined symbol "killerid"
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(463) : warning 225: unreachable code
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(463) : error 029: invalid expression, assumed zero
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(463) : error 004: function "OnVehicleSpawn" is not implemented
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(46 : warning 225: unreachable code
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(46 : error 029: invalid expression, assumed zero
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(46 : error 004: function "OnVehicleDeath" is not implemented
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(473) : warning 225: unreachable code
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(473) : error 029: invalid expression, assumed zero
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(473) : error 004: function "OnPlayerText" is not implemented
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(47 : warning 225: unreachable code
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(47 : error 029: invalid expression, assumed zero
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(47 : error 004: function "zcmd_OnPlayerCommandText" is not implemented
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(480) : error 017: undefined symbol "cmdtext"
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(486) : warning 225: unreachable code
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(486) : error 029: invalid expression, assumed zero
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(486) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(491) : warning 225: unreachable code
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(491) : error 029: invalid expression, assumed zero
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(491) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(496) : warning 225: unreachable code
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(496) : error 029: invalid expression, assumed zero
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(496) : error 004: function "OnPlayerStateChange" is not implemented
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(501) : warning 225: unreachable code
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(501) : error 029: invalid expression, assumed zero
C:\Users\Breno\Desktop\Meu gm\gamemodes\Snart.pwn(501) : error 004: function "OnPlayerEnterCheckpoint" is not implemented




Re: Ajuda sistema de registro e login - DarkBr - 30.05.2017

PHP код:
   new file[50], aname[MAX_PLAYER_NAME], string[250];
   
GetPlayerName(playeridaname23);
   
format(filesizeof(file), "Contas/%s.ini"aname);
   if(
DOF2_FileExists(file))
   {
           
// se exitir
    
format(stringsizeof(string), "Ola %s seja bem vindo novamente \n Digite sua senha abaixo para Logar"aname);
    
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_PASSWORD"Digite sua senha"string"Login""Sair");
    }
    else
    {
        
// se nao exisitr
    
format(stringsizeof(string), "Ola %s seja bem vindo pela primeira vez \n Digite sua senha abaixo para se resgistrar"aname);
    
ShowPlayerDialog(playeridDIALOG_REGISTRODIALOG_STYLE_PASSWORD"Digite sua senha"string"Registrar""Cancelar");
    return 
1
aqui compilou certinho.

o erro pode ser com as Chaves se for 26 erros } {


Re: Ajuda sistema de registro e login - Brenopwn - 31.05.2017

Consegui arrumar aqui vlw