28.12.2010, 05:45
I'm not familiar with SQL in samp at all... but try this:
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.
if (mysql_store_result ( ))
{
mysql_free_result ( );
// blah blah , logs in the person.
}
else
{
mysql_free_reuslt ( );
// blahblah, tells the person they failatlife.
}