[Tool/Web/Other] Sistema de registro - PHP + MySQL - 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)
+----- Forum: Lançamentos/Releases (
https://sampforum.blast.hk/forumdisplay.php?fid=56)
+----- Thread: [Tool/Web/Other] Sistema de registro - PHP + MySQL (
/showthread.php?tid=280588)
Sistema de registro - PHP + MySQL -
RockFire - 01.09.2011
Este sistema usa MySQL, use o plugin do G-sTyLeZzZ ou do StrikenKid
Й muito bбsico, pensei em fazer um UCP, mas tenho preguiзa.
Imagens:
Para fazer a conexгo com o servidor й simples, vou dar um exemplo.
pawn Код:
public playerLogin( playerid , pass[] )
{
new sStr[ 150 ];
GetPlayerName( playerid , sStr , 23 );
format( sStr , 150 , "SELECT * FROM `reg` WHERE `username` = '%s' AND `password` = '%s'" , sStr , pass );
mysql_query( sStr );
if( mysql_num_rows() )
{
mysql_store_result();
new
values[3],
aa[20]
;
mysql_fetch_row_format( aa , "|" );
sscanf( aa , "p<|>{s[20]s[20]}i", values );
AdminLevel[ playerid ] = values[ 2 ];
SendClientMessage( playerid , -1 , "Logado." );
}
else
{
SendClientMessage( playerid , -1 , "Errou a senha !" );
Kick( playerid );
}
return 1;
}
Re: Sistema de registro - PHP + MySQL -
[R] ousenber [K] - 01.09.2011
Legal, se fez mesmo ^^
This forum requires that you wait 120 seconds between posts. Please try again in 6 seconds.
Re: Sistema de registro - PHP + MySQL -
Dolby - 01.09.2011
Bom Sistema Rock,vai ajudar muitas pessoas que precisam de um sistema assim.
Re: Sistema de registro - PHP + MySQL -
histire - 01.09.2011
lol falo ki ia faser no outro topico e fez mesmo parabens ^^ maneiro
Re: Sistema de registro - PHP + MySQL -
iansinho - 02.09.2011
Muito bom! Parabйns.
Re: Sistema de registro - PHP + MySQL -
MiTToS - 02.09.2011
+reputaзгo
parabens.
Re: Sistema de registro - PHP + MySQL -
steki. - 02.09.2011
Bem simples, mas foi o ъnico que ousou a fazer. Muito bom mesmo.
Que tal agente combinar de fazer um UCP? xD
Re: Sistema de registro - PHP + MySQL -
RockFire - 02.09.2011
Obrigado a todos
Claro Mнki ^^
Re: Sistema de registro - PHP + MySQL -
BrunoBSF - 02.09.2011
Muito Legal cara
Re: Sistema de registro - PHP + MySQL -
Juninho_Oakley - 02.09.2011
Nossa Muito massa + reputaзгo aki!