01.03.2016, 01:09
Hello guys, I confused this.
I use lots of table to store player's data but on player login, I have to load them all.
now I use this-kind method to loadit, but its slowly.
Can you point a proper way to do this
THX.
I use lots of table to store player's data but on player login, I have to load them all.
now I use this-kind method to loadit, but its slowly.
Can you point a proper way to do this
Код:
mysql_format(mySQL, query, sizeof query, "SELECT * FROM `a` WHERE `id` = '%d';", pid); ); mysql_tquery(mysql, query, "", "d", playerid); mysql_format(mySQL, query, sizeof query, "SELECT * FROM `b` WHERE `id` = '%d';", pid); ); mysql_tquery(mysql, query, "", "d", playerid); mysql_format(mySQL, query, sizeof query, "SELECT * FROM `c` WHERE `id` = '%d';", pid); ); mysql_tquery(mysql, query, "", "d", playerid); mysql_format(mySQL, query, sizeof query, "SELECT * FROM `d` WHERE `id` = '%d';", pid); ); mysql_tquery(mysql, query, "", "d", playerid); mysql_format(mySQL, query, sizeof query, "SELECT * FROM `e` WHERE `id` = '%d';", pid); ); mysql_tquery(mysql, query, "", "d", playerid); mysql_format(mySQL, query, sizeof query, "SELECT * FROM `f` WHERE `id` = '%d';", pid); ); mysql_tquery(mysql, query, "", "d", playerid); mysql_format(mySQL, query, sizeof query, "SELECT * FROM `g` WHERE `id` = '%d';", pid); ); mysql_tquery(mysql, query, "", "d", playerid);
THX.