MySQL
#4

To make this a tad more efficient, why don't you make the queries threaded? Or make the query shorter by using default values. I only save the password and username on registering. I've assigned default values in the tables.

pawn Код:
#define     THREAD_ADD_USER     1

//some callback.
format(query,sizeof(query),"...");
mysql_query(query,THREAD_ADD_USER,playerid);

//somewhere in your script.
public OnQueryFinish(query[], resultid, extraid, connectionHandle)
{
    switch(resultid)
    {
        case THREAD_ADD_USER:
        {
            //code
        }
    }
    return 1;
}
Or maybe upgrade to R38? Just a tip
Reply


Messages In This Thread
MySQL - by austin070 - 19.04.2014, 22:41
Re: MySQL - by itsCody - 19.04.2014, 22:52
Re: MySQL - by austin070 - 19.04.2014, 22:54
Re: MySQL - by DobbysGamertag - 20.04.2014, 00:04

Forum Jump:


Users browsing this thread: 1 Guest(s)