Mysql help! "File or function is not found" -
tony_fitto - 04.07.2011
Hey Everyone, Need some help with mysql
I use this mysql include <a_sampmysql>
each time I try to start my server it doesn't start cause of this error
Код:
[00:18:07] Loaded 6 filter scripts.
[00:18:07] Script[gamemodes/****.amx]: Run time error 19: "File or function is not found"
[00:18:07] Number of vehicle models: 0
How can I fix this?
Re: Mysql help! "File or function is not found" -
dr.pepper - 04.07.2011
You're missing the Plugin for MySQL in your server.cfg.
Re: Mysql help! "File or function is not found" -
Andregood - 04.07.2011
Have you recently removed any of the standard scriptfiles contents? Anything you recently added? If so, try removing it or change it.
Re: Mysql help! "File or function is not found" -
tony_fitto - 04.07.2011
Thanks, and where can I find that plugin ?
Re: Mysql help! "File or function is not found" -
tony_fitto - 04.07.2011
Quote:
Originally Posted by Andregood
Have you recently removed any of the standard scriptfiles contents? Anything you recently added? If so, try removing it or change it.
|
Nope
Re: Mysql help! "File or function is not found" -
dr.pepper - 04.07.2011
First off, I have never heard this #include: <a_sampmysql> are you getting mistaken by <a_mysql>?
Edit: <a_mysql> is supported by BlueG/G-sTyLeZzZ's plugin.
Re: Mysql help! "File or function is not found" -
TheArcher - 04.07.2011
Quote:
Originally Posted by tony_fitto
Thanks, and where can I find that plugin ?
|
Depends what kind of plugin your using..
G-sTyLeZzZ's one or StrickenKid's
Re: Mysql help! "File or function is not found" -
TheArcher - 04.07.2011
Quote:
Originally Posted by dr.pepper
First off, I have never heard this #include: <a_sampmysql> are you getting mistaken by <a_mysql>?
|
yes #include: <a_sampmysql> exists but it's very old. I can say is the first MySQL system before plugins.
Re: Mysql help! "File or function is not found" -
tony_fitto - 04.07.2011
Quote:
Originally Posted by dr.pepper
First off, I have never heard this #include: <a_sampmysql> are you getting mistaken by <a_mysql>?
|
I'm not misstaken
I think you get the include together with 0.3c
This is the content in the include file.
PHP код:
/* 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_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();
Re: Mysql help! "File or function is not found" -
TheArcher - 04.07.2011
Quote:
Originally Posted by tony_fitto
I'm not misstaken
I think you get the include together with 0.3c
This is the content in the include file.
PHP код:
/* 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_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();
|
That system is very old. If you created a GM from scrath so i suggest you to use one of MySQL plugin due to more functions and more speed.