04.08.2009, 11:12
And it is possible to write though how with this function to work? And that new functions at all for me.
|
Originally Posted by agusfn20
Where can i download the a_mysql.inc with those funcions?
|
|
Originally Posted by agusfn20
I cant see the download link of a_mysql.inc, please put the url in the reply
|
samp_mysql_select_db
|
Originally Posted by agusfn20
This function is not defined
samp_mysql_select_db |
new Data[1024];
new Field[64];
new rcnt = 1;
MySQLFetchAcctRecord(PlayerInfo[playerid][pSQLID], Data);
samp_mysql_strtok(Field, "|", Data);
while (samp_mysql_strtok(Field, "|", "")==1)
{
|
Originally Posted by APTEM
I something and shall not understand as from sql to read the information. Write please ready code.
Код:
new Data[1024];
new Field[64];
new rcnt = 1;
MySQLFetchAcctRecord(PlayerInfo[playerid][pSQLID], Data);
samp_mysql_strtok(Field, "|", Data);
while (samp_mysql_strtok(Field, "|", "")==1)
{
|
samp_mysql_connect("MYSQL_HOST","MYSQL_USER","MYSQL_PASS");
samp_mysql_select_db("MYSQL_DB");
samp_mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_PASS); samp_mysql_select_db(MYSQL_DB);
mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_PASS); mysql_select_db(MYSQL_DB);
mysql_connect(const host[],const user[],const database[],const password[])