[Tool/Web/Other] Sistema de registro - PHP + MySQL
#1

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;
}
Reply


Messages In This Thread
Sistema de registro - PHP + MySQL - by RockFire - 01.09.2011, 23:36
Re: Sistema de registro - PHP + MySQL - by [R] ousenber [K] - 01.09.2011, 23:40
Re: Sistema de registro - PHP + MySQL - by Dolby - 01.09.2011, 23:40
Re: Sistema de registro - PHP + MySQL - by histire - 01.09.2011, 23:43
Re: Sistema de registro - PHP + MySQL - by iansinho - 02.09.2011, 00:00
Re: Sistema de registro - PHP + MySQL - by MiTToS - 02.09.2011, 00:03
Re: Sistema de registro - PHP + MySQL - by steki. - 02.09.2011, 00:12
Re: Sistema de registro - PHP + MySQL - by RockFire - 02.09.2011, 00:26
Re: Sistema de registro - PHP + MySQL - by BrunoBSF - 02.09.2011, 01:15
Re: Sistema de registro - PHP + MySQL - by Juninho_Oakley - 02.09.2011, 23:51

Forum Jump:


Users browsing this thread: 2 Guest(s)