everyone can login
#9

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


Messages In This Thread
everyone can login - by Saurik - 28.12.2010, 05:03
Re: everyone can login - by Retardedwolf - 28.12.2010, 05:08
Re: everyone can login - by Saurik - 28.12.2010, 05:10
Re: everyone can login - by XPlatform - 28.12.2010, 05:11
Re: everyone can login - by Retardedwolf - 28.12.2010, 05:12
Re: everyone can login - by Saurik - 28.12.2010, 05:15
Re: everyone can login - by Retardedwolf - 28.12.2010, 05:21
Re: everyone can login - by Saurik - 28.12.2010, 05:32
Re: everyone can login - by XPlatform - 28.12.2010, 05:45
Re: everyone can login - by Retardedwolf - 28.12.2010, 05:49

Forum Jump:


Users browsing this thread: 1 Guest(s)