26.12.2008, 08:25
The same problem. In a file a_sampmysql.inc there is no declaration samp_mysql_get_field ()
compiler does not find this function.
Moreover I have added in a_sampmysql.inc a line: native samp_mysql_get_field (field [], value []); expecting that it has been lost:
Then compilation is successful also a script is successfully connected to a database and makes query, but
on samp_mysql_get_field the server crashes.
How to solve this?
(sorry by my bad english)
compiler does not find this function.
Moreover I have added in a_sampmysql.inc a line: native samp_mysql_get_field (field [], value []); expecting that it has been lost:
Код:
/* SA:MP MySQL Functions */ #if defined _sampmysql_included #endinput #endif #define _sampmysql_included #pragma library lgw native samp_mysql_connect(server[], user[], password[]); native samp_mysql_select_db(db[]); native samp_mysql_query(query[]); native samp_mysql_store_result(); native samp_mysql_fetch_row(line[]); native samp_mysql_get_field(field[], value[]); // <-- this added native samp_mysql_num_rows(); native samp_mysql_num_fields(); native samp_mysql_ping(); native samp_mysql_real_escape_string(src[], dest[]); native samp_mysql_free_result(); native samp_mysql_strtok(dest[], separator[], src[]); native samp_mysql_close();
on samp_mysql_get_field the server crashes.
How to solve this?
(sorry by my bad english)