SA-MP Forums Archive
Mysql help! "File or function is not found" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Mysql help! "File or function is not found" (/showthread.php?tid=266463)



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.