Running Server MySQL Error
#1

Hello, I've decided to re-run my server on localhost again after 4 months of scripting it. I did run the samp-server file, and it said: Run Time Error: Function not found etc.., then I added crashdetect, and it said:

HTML Code:
[11:26:08] [debug] Run time error 19: "File or function is not found"
[11:26:08] [debug]  mysql_store_result
[11:26:08] [debug]  mysql_num_rows
[11:26:08] [debug]  mysql_free_result
[11:26:08] [debug]  mysql_fetch_row
[11:26:08] [debug]  mysql_real_escape_string
[11:26:08] [debug]  mysql_init
[11:26:08] [debug] Run time error 19: "File or function is not found"
[11:26:08] [debug]  mysql_store_result
[11:26:08] [debug]  mysql_num_rows
[11:26:08] [debug]  mysql_free_result
[11:26:08] [debug]  mysql_fetch_row
[11:26:08] [debug]  mysql_real_escape_string
[11:26:08] [debug]  mysql_init
[11:26:08] Script[gamemodes/CnR.amx]: Run time error 19: "File or function is not found"
[11:26:08] Number of vehicle models: 0
I'm sure I used to run it on my localhost before and it worked very well, but I don't know what is wrong with it now, I've downloaded the newest MySQL version which is v41, and still same shit. Important note, it is that the gamemode has #include <mysql> and not #include <a_mysql>, I tried to change it to a_mysql but it at the compiling it given me many errors (undefined ..). So please anyone help?
Reply
#2

try to use mysql_static.so
Reply
#3

Wrong mysql plugin. The script was using: https://sampforum.blast.hk/showthread.php?tid=122983

But yeah.. switching to BlueG's mysql plugin (latest version) is always recommended as there's no support for that old outdated plugin (StrickenKid's). Of course it's not just plug and play, you'll need to update the script (change the code).
Reply
#4

Quote:
Originally Posted by Konstantinos
View Post
Wrong mysql plugin. The script was using: https://sampforum.blast.hk/showthread.php?tid=122983

But yeah.. switching to BlueG's mysql plugin (latest version) is always recommended as there's no support for that old outdated plugin (StrickenKid's). Of course it's not just plug and play, you'll need to update the script (change the code).
I've gone to StrickenKid's website (the link you provided), and it says the domain maybe for sale, and I can't download anything. Can you please send me a download link for it?
Reply
#5

Quote:
Originally Posted by Ahmed21
View Post
I've gone to StrickenKid's website (the link you provided), and it says the domain maybe for sale, and I can't download anything. Can you please send me a download link for it?
It happens. Always read the last comments because most likely someone has provided links there: http://forum.sa-mp.com/showpost.php?...postcount=1005
Reply
#6

Quote:
Originally Posted by Konstantinos
View Post
It happens. Always read the last comments because most likely someone has provided links there: http://forum.sa-mp.com/showpost.php?...postcount=1005
Okay, thank you so much my friend! +REP'd
Reply
#7

Hello, after solving that problem above, I got a new kind problem e.e, it says on the server-samp file:

NOTE: I'm still running it on the localhost as well.

Code:
[MySQL] Error (0): Failed to connect. Access denied for user 'root'@'localhost' (using password: YES).
Here's the thing that I have on OnGameModeInit:
PHP Code:
connection mysql_init(LOG_ONLY_ERRORS1);
    
mysql_connect("localhost""root"" ""ccnr"connection1); 
What is wrong with it?!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)