Help to update MYSQL plugin
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
mysql_function_query was a macro. If you don't want to rename it to mysql_tquery and remove the 3rd parameter (true/false for cache) completely, you can use:
pawn Код:
#define mysql_function_query(%0,%1,%2,%3,"%4"%5)    mysql_tquery(%0,%1,%3,#%4%5)
All the rest are explained here: https://sampforum.blast.hk/showthread.php?tid=616103
Thank you! This link help me a lot!
+rep

Quote:
Originally Posted by Gotham
Посмотреть сообщение
Change all the wrong ones to the new ones , it's written in the releases page/ forum thread!
Yes, I'm just a bit of trouble

================================================== ================================================


Looking this:
https://sampforum.blast.hk/showthread.php?tid=616103

Is this right?
Код:
new MySQL:ConnectMYSQL;
Код:
ConnectMYSQL = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB);
I solved more then 50 errors
Left only this 4 idk how to fix, pls someone could help me?

GW.pwn(1585) : error 017: undefined symbol "mysql_function_query"
Код:
mysql_function_query(ConnectMYSQL, query, true, "OnConnection","i",playerid);
from
Код:
    new query[512];
    new Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
    mysql_format(ConnectMYSQL, query, sizeof(query), "SELECT * FROM `accounts` WHERE `Username` = '%s'", Nome(playerid) ); //SELECT * FROM accounts WHERE Name = %s TROQUE PELA QUAL ESTA NO SEU BANCO DE DADOS
    mysql_function_query(ConnectMYSQL, query, true, "OnConnection","i",playerid);
GW.pwn(7059) : error 017: undefined symbol "mysql_function_query"
Код:
mysql_function_query(ConnectMYSQL, rsquery, true, "CheckRefferExist","is",playerid,refferername);
from
Код:
else
{ // sucess
    new rsquery[160], refferername[MAX_PLAYER_NAME+1];
    reffer[playerid] = refferername;
    format(refferername,sizeof(refferername),"%s",inputtext);
    mysql_format(ConnectMYSQL, rsquery, sizeof(rsquery), "SELECT Username FROM `accounts` WHERE `Username` = '%s'", refferername ); //SELECT * FROM accounts WHERE Name = %s TROQUE PELA QUAL ESTA NO SEU BANCO DE DADOS
    mysql_function_query(ConnectMYSQL, rsquery, true, "CheckRefferExist","is",playerid,refferername);
}
[b]GW.pwn(9504) : warning 213: tag mismatch
Код:
if(cache_get_row_count(ConnectMYSQL) == 1) {
GW.pwn(9549) : error 017: undefined symbol "cache_get_field_content_int"
Код:
int_dest[10] = cache_get_field_content_int(0, "admin");                 admin[playerid] = int_dest[10];
Reply


Messages In This Thread
Help to update MYSQL plugin - by ubunttu - 16.10.2016, 00:34
Re: Help to update MYSQL plugin - by ubunttu - 16.10.2016, 07:53
Re: Help to update MYSQL plugin - by Konstantinos - 16.10.2016, 09:21
Re: Help to update MYSQL plugin - by Gotham - 16.10.2016, 10:25
Re: Help to update MYSQL plugin - by ubunttu - 16.10.2016, 15:00
Re: Help to update MYSQL plugin - by Konstantinos - 16.10.2016, 15:17
Re: Help to update MYSQL plugin - by pdonald - 17.10.2016, 01:22
Re: Help to update MYSQL plugin - by Konstantinos - 17.10.2016, 10:04
Re: Help to update MYSQL plugin - by ubunttu - 17.10.2016, 12:57
Re: Help to update MYSQL plugin - by Konstantinos - 17.10.2016, 14:53

Forum Jump:


Users browsing this thread: 1 Guest(s)