28.12.2010, 05:21
pawn Код:
new escape [ 140 ];
mysql_real_escape_string ( inputtext, escape );
format ( string, sizeof ( string ), "SELECT * FROM users WHERE User='%s' AND Password = MD5('%s') LIMIT 1", PlayerName, inputtext);
mysql_query ( string ); //If you're using BlueG's plugin.
mysql_store_result ( );
if ( mysql_store_result )
{
mysql_free_result ( );
// blah blah , logs in the person.
}
else
{
mysql_free_reuslt ( );
// blahblah, tells the person they failatlife.
}