10.01.2015, 19:27
Did the next thing:
defined host , user , etc. then
and got the next errors:
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" |