Mysql help! "File or function is not found"
#1

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?
Reply
#2

You're missing the Plugin for MySQL in your server.cfg.
Reply
#3

Have you recently removed any of the standard scriptfiles contents? Anything you recently added? If so, try removing it or change it.
Reply
#4

Thanks, and where can I find that plugin ?
Reply
#5

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
Reply
#6

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.
Reply
#7

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
Reply
#8

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.
Reply
#9

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(); 
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)