[Pedido] Ajuda sobre pegar e comparar senha DOF2 - 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: [Pedido] Ajuda sobre pegar e comparar senha DOF2 (
/showthread.php?tid=544090)
Ajuda sobre pegar e comparar senha DOF2 - BWCALLEf - 31.10.2014
Pessoal estou com dificuldade em pegar a senha do player e guardar dps comparar no login
PHP код:
if(strlen(inputtext) < 8 || strlen(inputtext) > 16)
{
// AKI EU PEGO A SENHA CORRETO?
}
DOF2::SetString(Arquivo,"Senha", inputtext); // AKI EU SETO A SENHA QUE PEGUEI ?
// OBS TO APRENDENDO ENTAO SE EU ESTIVER ERRADO ME AJUDEM
// AGORA QUERIA COMPARAR A SENHA DO PLAYER PRA ELE LOGAR COMO FAЗO?
Re: Ajuda sobre pegar e comparar senha DOF2 -
PT - 31.10.2014
DOF2::GetString obtem a senha do arquivo
strcmp compara a senha com o text inserido
exemplo
pawn Код:
if(strcmp("oi", "oi") == 0)
{
// caso oi seja oi
}
Re: Ajuda sobre pegar e comparar senha DOF2 - BWCALLEf - 31.10.2014
PHP код:
if(strcmp(inputtext,DOF2_GetString(String,"Senha") == 0))
{
}
+- assim ? acho que ta errado mais intendi Obrigado
Re: Ajuda sobre pegar e comparar senha DOF2 -
PT - 31.10.2014
nao cara tem uma coisa ali olha direito nos )
apos compilar, teste e obtenha sua resposta :P