Getting run time error 19, on linux host!
#1

Guys, i have my server, it's cops and robbers and my all plugins loaded successfully on hosted, but still there is coming run time error see.
btw my server is based on mysql database. And i am using mysql.inc instead of a_mysql.inc.

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[09:22:42] 
[09:22:42] Server Plugins
[09:22:42] --------------
[09:22:42]  Loading plugin: mysql.so
[09:22:42] 

  > MySQL plugin R7 successfully loaded.

[09:22:42]   Loaded.
[09:22:42]  Loading plugin: sscanf.so
[09:22:42] 

[09:22:42]  ===============================

[09:22:42]       sscanf plugin loaded.     

[09:22:42]          Version:  2.8.1        

[09:22:42]    © 2012 Alex "******" Cole  

[09:22:42]  ===============================

[09:22:42]   Loaded.
[09:22:42]  Loading plugin: streamer.so
[09:22:42] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[09:22:42]   Loaded.
[09:22:42]  Loading plugin: regex.so
[09:22:42] 


[09:22:42] ______________________________________


[09:22:42]  Regular Expression Plugin v0.2.1 loaded
[09:22:42] ______________________________________


[09:22:42]  By: Fro © Copyright <TBG> 2009-2011
[09:22:42] ______________________________________


[09:22:42]   Loaded.
[09:22:42]  Loaded 4 plugins.

[09:22:42] 
[09:22:42] Filterscripts
[09:22:42] ---------------
[09:22:42]   Loading filterscript 'gps.amx'...
[09:22:42] 
--------------------------------------
[09:22:42] GPS System Loaded
[09:22:42] GPS System Loaded...
[09:22:42] --------------------------------------

[09:22:42]   Loading filterscript 'cidrban.amx'...
[09:22:42] 
######################################
[09:22:42] #				     #
[09:22:42] # Filerscript 'CIDRBAN' by someone Loaded
[09:22:42] #				     #
[09:22:42] ######################################

[09:22:42]   Loading filterscript 'xmas.amx'...
[09:22:42]   Loading filterscript 'TD.amx'...
[09:22:43] 
--------------------------------------
[09:22:43]  Text Draw Editor 1.0RC2 by Zamaroht for SA-MP 0.3 Loaded.
[09:22:43] --------------------------------------

[09:22:43]   Loading filterscript 'santa.amx'...
[09:22:43]   Loading filterscript 'adminlounge.amx'...
[09:22:43]   Loaded 6 filterscripts.

[09:22:43] Script[gamemodes/sfcnr.amx]: Run time error 19: "File or function is not found"
[09:22:43] Number of vehicle models: 0
Reply
#2

Either check if you wrote the gamemode's line correctly in the server.cfg, or have the compiled version (.amx) of the script (which appears in the server.cfg) in your gamemode's folder.
Eventually, try to run the server wih the nativchecker plugin, which can be found here.
As a note, you have to load nativechecker as the last of the plugins, so place in at the very end in your server.cfg file at the plugins line.

e.g. plugins plg#1 plg#2 plg#3 nativecheker
Reply
#3

Still getting error but now some functions of mysql is not working, it's showing

Код:
[09:22:46]    Error: Function not registered: 'mysql_query'
[09:22:46]    Error: Function not registered: 'mysql_fetch_row'
[09:22:46]    Error: Function not registered: 'mysql_init'
[09:22:46] Script[gamemodes/sfcnr.amx]: Run time error 19: "File or function is not found"
[09:22:46] Number of vehicle models: 0
Btw i am all doing this on hosted server, my server is working on my local host but not on linux, please guys solve my problem, i have to get the server online and on hosted tab.
Reply
#4

Are you sure that you loaded nativechecker as the last plugin?
Also, make sure that your gamemode has permissions to be read.

Use:
Код:
chmod 640 file
Reply
#5

See the server.cfg file, i did all that's why it is giving the errors now that the functions are not registered.

Код:
okecho Executing Server Config...
lanmode 0
rcon_password don_689
maxplayers 50
port 7777
hostname IG Cops and Robbers 0.3.7 (San Andreas)
gamemode0 sfcnr
plugins mysql.so sscanf.so streamer.so regex.so nativechecker.so
filterscripts gps cidrban xmas TD santa adminlounge
announce 1
query 1
weburl cnr.sa-mp.in
onfoot_rate 40
incar_rate 30
weapon_rate 40
stream_distance 300.0
stream_rate 900
maxnpc 10	
logtimeformat [%H:%d:%S]
language English
Reply
#6

Do you have a gamemode untitled sfcnr.amx in your "gamemodes" folder which has reading permissions?
Reply
#7

Lol yes, that's why it is reading the gamemode. If i don't have the sfcnr.amx, it won't give the error.
please just solve my problem, btw it is working on my local host but not on linux
Reply
#8

Quote:
Originally Posted by GuthiX
Посмотреть сообщение
Lol yes, that's why it is reading the gamemode. If i don't have the sfcnr.amx, it won't give the error.
please just solve my problem, btw it is working on my local host but not on linux
You run an older version of gamemode in which there is no/replaced by some sort of function. Find the latest version and recompile gamemode for 0.3.7 R-2
Reply
#9

Quote:
Originally Posted by Logofero
Посмотреть сообщение
You run an older version of gamemode in which there is no/replaced by some sort of function. Find the latest version and recompile gamemode for 0.3.7 R-2
So can you give me the latest mysql.inc please because i have older version of it see:

Код:
/**
 *     SA:MP MySQL v2.1 Functions
 *  © Copyright 2011, StrickenKid
 *
 **/

#if defined __mysql_included
	#endinput
#endif

#define __mysql_included
#pragma library mysql

// plugin error id's

#define P_ERROR_NONE                                0
#define P_ERROR_INCPARAMCNT                         1
#define P_ERROR_INCVALUE                            2
#define P_ERROR_MAXCONN                             3
#define P_ERROR_DBNOCONN                            4
#define P_ERROR_NORES                               5
#define P_ERROR_RES                                 6
#define P_ERROR_NOFIELD                             7
#define P_ERROR_NOFIELDDATA                         8
#define P_ERROR_NOROWDATA                           9
#define P_ERROR_CANTALLOC                           10
#define P_ERROR_NOCALLBACK                          11
#define P_ERROR_NOQUERY                             12

// mysql headers defines

#define REFRESH_GRANT								1
#define REFRESH_LOG									2
#define REFRESH_TABLES								4
#define REFRESH_HOSTS								8
#define REFRESH_STATUS								16
#define REFRESH_THREADS								32
#define REFRESH_SLAVE   							64
#define REFRESH_MASTER 							 	128

// mysql error id's

#define CR_ERROR_FIRST  							2000
#define CR_UNKNOWN_ERROR							2000
#define CR_SOCKET_CREATE_ERROR						2001
#define CR_CONNECTION_ERROR							2002
#define CR_CONN_HOST_ERROR							2003
#define CR_IPSOCK_ERROR								2004
#define CR_UNKNOWN_HOST								2005
#define CR_SERVER_GONE_ERROR						2006
#define CR_VERSION_ERROR							2007
#define CR_OUT_OF_MEMORY							2008
#define CR_WRONG_HOST_INFO							2009
#define CR_LOCALHOST_CONNECTION 					2010
#define CR_TCP_CONNECTION							2011
#define CR_SERVER_HANDSHAKE_ERR 					2012
#define CR_SERVER_LOST								2013
#define CR_COMMANDS_OUT_OF_SYNC 					2014
#define CR_NAMEDPIPE_CONNECTION 					2015
#define CR_NAMEDPIPEWAIT_ERROR  					2016
#define CR_NAMEDPIPEOPEN_ERROR  					2017
#define CR_NAMEDPIPESETSTATE_ERROR 					2018
#define CR_CANT_READ_CHARSET						2019
#define CR_NET_PACKET_TOO_LARGE						2020
#define CR_EMBEDDED_CONNECTION						2021
#define CR_PROBE_SLAVE_STATUS   					2022
#define CR_PROBE_SLAVE_HOSTS    					2023
#define CR_PROBE_SLAVE_CONNECT  					2024
#define CR_PROBE_MASTER_CONNECT 					2025
#define CR_SSL_CONNECTION_ERROR 					2026
#define CR_MALFORMED_PACKET     					2027
#define CR_WRONG_LICENSE							2028
#define CR_NULL_POINTER								2029
#define CR_NO_PREPARE_STMT							2030
#define CR_PARAMS_NOT_BOUND							2031
#define CR_DATA_TRUNCATED							2032
#define CR_NO_PARAMETERS_EXISTS 					2033
#define CR_INVALID_PARAMETER_NO 					2034
#define CR_INVALID_BUFFER_USE						2035
#define CR_UNSUPPORTED_PARAM_TYPE 					2036
#define CR_SHARED_MEMORY_CONNECTION             	2037
#define CR_SHARED_MEMORY_CONNECT_REQUEST_ERROR 		2038
#define CR_SHARED_MEMORY_CONNECT_ANSWER_ERROR   	2039
#define CR_SHARED_MEMORY_CONNECT_FILE_MAP_ERROR 	2040
#define CR_SHARED_MEMORY_CONNECT_MAP_ERROR      	2041
#define CR_SHARED_MEMORY_FILE_MAP_ERROR         	2042
#define CR_SHARED_MEMORY_MAP_ERROR              	2043
#define CR_SHARED_MEMORY_EVENT_ERROR     			2044
#define CR_SHARED_MEMORY_CONNECT_ABANDONED_ERROR 	2045
#define CR_SHARED_MEMORY_CONNECT_SET_ERROR      	2046
#define CR_CONN_UNKNOW_PROTOCOL 					2047
#define CR_INVALID_CONN_HANDLE						2048
#define CR_SECURE_AUTH                          	2049
#define CR_FETCH_CANCELED                       	2050
#define CR_NO_DATA                              	2051
#define CR_NO_STMT_METADATA                     	2052
#define CR_NO_RESULT_SET                        	2053
#define CR_NOT_IMPLEMENTED                      	2054
#define CR_SERVER_LOST_EXTENDED						2055
#define CR_STMT_CLOSED								2056
#define CR_NEW_STMT_METADATA                    	2057
#define CR_ERROR_LAST                      			2057

// logging types

#define INVALID_MYSQL_ID							(-1)
#define LOG_OFF										(0)
#define LOG_ALL           							(1)
#define LOG_ONLY_ERRORS   							(2)

// function defines

#define mysql_reload(%1) mysql_refresh(REFRESH_GRANT, %1)

// plugin callbacks

forward OnMysqlQueryArray(resultid, extravars[], MySQL:handle);
forward OnMysqlQuery(resultid, spareid, MySQL:handle);
forward OnMysqlError(error[], errorid, MySQL:handle);

// plugin natives

native MySQL:mysql_init(logtype = LOG_ONLY_ERRORS, printerrors = 1);
native mysql_connect(const host[], const user[], const pass[], const db[], MySQL:handle = (MySQL:0), auto_reconnect = 0);
native mysql_close(MySQL:handle = (MySQL:0));
native mysql_refresh(options, MySQL:handle = (MySQL:0));
native mysql_select_db(const db[], MySQL:handle = (MySQL:0));
native mysql_query(const query[], resultid = (-1), spareid = (0), MySQL:handle = (MySQL:0));
native mysql_query_array(const query[], resultid = (-1), {Float,_}:extravars[], MySQL:handle = (MySQL:0));
native mysql_store_result(MySQL:handle = (MySQL:0));
native mysql_free_result(MySQL:handle = (MySQL:0));
native mysql_result_stored(MySQL:handle = (MySQL:0));
native mysql_fetch_field(const fieldname[], dest[], MySQL:handle = (MySQL:0));
native mysql_fetch_field_num(fieldnum, dest[], MySQL:handle = (MySQL:0));
native mysql_fetch_row(dest[], const splitter[] = "|", MySQL:handle = (MySQL:0));
native mysql_fetch_row_data(MySQL:handle = (MySQL:0));
native mysql_real_escape_string(const string[], dest[], MySQL:handle = (MySQL:0));
native mysql_num_rows(MySQL:handle = (MySQL:0));
native mysql_num_fields(MySQL:handle = (MySQL:0));
native mysql_affected_rows(MySQL:handle = (MySQL:0));
native mysql_insert_id(MySQL:handle = (MySQL:0));
native mysql_ping(MySQL:handle = (MySQL:0));
native mysql_error(dest[], MySQL:handle = (MySQL:0));
native mysql_errno(MySQL:handle = (MySQL:0));
native mysql_warning_count(MySQL:handle = (MySQL:0));
native mysql_info(dest[], MySQL:handle = (MySQL:0));
native mysql_stat(dest[], MySQL:handle = (MySQL:0));
native mysql_get_server_info(dest[], MySQL:handle = (MySQL:0));
native mysql_get_host_info(dest[], MySQL:handle = (MySQL:0));
native mysql_data_seek(rownum, MySQL:handle = (MySQL:0));
native mysql_set_character_set(const csname[], MySQL:handle = (MySQL:0));
native mysql_get_character_set(csname[], MySQL:handle = (MySQL:0));
native mysql_fetch_int(MySQL:handle = (MySQL:0));
native Float:mysql_fetch_float(MySQL:handle = (MySQL:0));
native mysql_fetch_string(dest[], MySQL:handle = (MySQL:0));

#if !defined split
// split function - thanks to Blacklite
stock split(const strsrc[], strdest[][], delimiter = '|')
{
	new i, li, aNum, len, srclen = strlen(strsrc);
	while(i <= srclen)
	{
		if (strsrc[i] == delimiter || i == srclen)
		{
			len = strmid(strdest[aNum], strsrc, li, i, 128);
			strdest[aNum][len] = 0;
			li = i + 1;
			aNum++;
		}
		i++;
	}
}
#endif
Will anyone update this for 0.3.7 R7?
Reply
#10

BUMP? please help me?
I'll give him +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)