Script[gamemodes/cnr.amx]: Run time error 19: "File or function is not found"
#1

Complied This Script With No Error But When I Am Starting The Server This Error Comming
PHP код:
----------
Loaded log file"server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7, (C)2005-2015 SA-MP Team
[17:48:44password ""  (string)
[
17:48:44
[
17:48:44Server Plugins
[17:48:44] --------------
[
17:48:44]  Loading plugincrashdetect.so
[17:48:44]   Loaded.
[
17:48:44]  Loading pluginnativechecker.so
[17:48:44]   Loaded.
[
17:48:44]  Loading pluginsscanf.so
[17:48:44
[
17:48:44]  ===============================
[
17:48:44]       sscanf plugin loaded.     
[
17:48:44]          Version:  2.8.1        
[17:48:44]    (c2012 Alex "******" Cole  
[17:48:44]  ===============================
[
17:48:44]   Loaded.
[
17:48:44]  Loading pluginmysql.so
[17:48:44]   Failed (plugins/mysql.soinvalid ELF header)
[
17:48:44]  Loading pluginstreamer.so
[17:48:44
*** 
Streamer Plugin v2.7.5.2 by Incognito loaded ***
[
17:48:44]   Loaded.
[
17:48:44]  Loading pluginlibmysqlclient.so
[17:48:44]   Failed (plugins/libmysqlclient.sofile too short)
[
17:48:44]  Loading pluginmysqlR39.so
[17:48:44]  >> plugin.mysqlR39-2 successfully loaded.
[
17:48:44]   Loaded.
[
17:48:44]  Loading plugindns.so
[17:48:44
*** 
DNS Plugin v2.4 by Incognito loaded ***
[
17:48:44]   Loaded.
[
17:48:44]  Loading pluginwhirlpool.so
[17:48:44]  
[
17:48:44]  ==================
[
17:48:44]  
[
17:48:44]   Whirlpool loaded
[17:48:44]  
[
17:48:44]  ==================
[
17:48:44]  
[
17:48:44]   Loaded.
[
17:48:44]  Loaded 7 plugins.
[
17:48:44
[
17:48:44Filterscripts
[17:48:44] ---------------
[
17:48:44]   Loading filterscript 'UltraHost.amx'...
[
17:48:44]   Loaded 1 filterscripts.
[
17:48:44]    Error: Function not registered'mysql_query'
[17:48:44]    Error: Function not registered'mysql_debug'
[17:48:44]    Error: Function not registered'mysql_store_result'
[17:48:44]    Error: Function not registered'mysql_num_rows'
[17:48:44]    Error: Function not registered'mysql_retrieve_row'
[17:48:44]    Error: Function not registered'mysql_fetch_field_row'
[17:48:44]    Error: Function not registered'mysql_free_result'
[17:48:44]    Error: Function not registered'mysql_real_escape_string'
[17:48:44]    Error: Function not registered'mysql_connect'
[17:48:44]    Error: Function not registered'mysql_ping'
[17:48:44Script[gamemodes/cnr.amx]: Run time error 19"File or function is not found"
[17:48:44Number of vehicle models
Reply
#2

You're missing the SQL plugin:
Код:
[17:48:44]  Loading plugin: mysql.so 
[17:48:44]   Failed (plugins/mysql.so: invalid ELF header)
Код:
[17:48:44]  Loading plugin: libmysqlclient.so 
[17:48:44]   Failed (plugins/libmysqlclient.so: file too short)
Try re-downloading the plugins.
Reply
#3

Link Please
Reply
#4

You load a mysql.so plugin with invalid ELF header (renamed the .dll?)
You load libmysqlclient which is NOT a plugin.
You load R39-2 after that.

I guess you want to have a mysql plugin with R6 and one with R39-2 (R39-3 is the latest) but you cannot do that. Update the old scripts to threaded queries and keep R39 mysql plugin loaded.

Also load nativechecker plugin last of all.
Reply
#5

So This All Will Solved After Getting the Correct Mysql Plugin ?

PHP код:
[18:04:40]    Error: Function not registered'mysql_query'
[18:04:40]    Error: Function not registered'mysql_debug'
[18:04:40]    Error: Function not registered'mysql_store_result'
[18:04:40]    Error: Function not registered'mysql_num_rows'
[18:04:40]    Error: Function not registered'mysql_retrieve_row'
[18:04:40]    Error: Function not registered'mysql_fetch_field_row'
[18:04:40]    Error: Function not registered'mysql_free_result'
[18:04:40]    Error: Function not registered'mysql_real_escape_string'
[18:04:40]    Error: Function not registered'mysql_connect'
[18:04:40]    Error: Function not registered'mysql_ping'
[18:04:40Script[gamemodes/cnr.amx]: Run time error 19"File or function is not found" 
Reply
#6

cnr.pwn uses R6 and the plugin is not loaded (it's only loaded R39 which is totally different functions etc). So either load R6 or update the script to threaded queries and use R39 (recommended).
Reply
#7

Can U Give Me The The Link?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)