Mysql problem. Need help
#7

Did the next thing:

defined host , user , etc. then

pawn Код:
new mysql_handle; //at the begining of the .pawn file

public OnGameModeInit()
{
    mysql_handle = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
    //mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);
    mysql_debug(1);
//just the part with mysql from onGamemodeInit()

//then , like 2000 lines after

                        new query[300];
                        mysql_format(mysql_handle, query, sizeof(query), "UPDATE players SET `Approved`='%s' WHERE `Name` = '%s'",tmp, giveplayer);
                        mysql_tquery(mysql_handle, query, "", "");

and got the next errors:

Quote:

error 017: undefined symbol "mysql_format"
error 017: undefined symbol "mysql_tquery"
warning 204: symbol is assigned a value that is never used: "mysql_handle"

Reply


Messages In This Thread
Mysql problem. Need help - by an4rei - 10.01.2015, 18:43
Re: Mysql problem. Need help - by bgedition - 10.01.2015, 18:48
Re: Mysql problem. Need help - by an4rei - 10.01.2015, 18:52
Re: Mysql problem. Need help - by Riddick94 - 10.01.2015, 18:59
Re: Mysql problem. Need help - by an4rei - 10.01.2015, 19:01
Re: Mysql problem. Need help - by bgedition - 10.01.2015, 19:02
Re: Mysql problem. Need help - by an4rei - 10.01.2015, 19:27
Re: Mysql problem. Need help - by an4rei - 10.01.2015, 19:29
Re: Mysql problem. Need help - by bgedition - 10.01.2015, 19:31
Re: Mysql problem. Need help - by an4rei - 10.01.2015, 19:37

Forum Jump:


Users browsing this thread: 3 Guest(s)