Error: Function not registered ??!!
#1

Hi.

I've got a LITTLE problem. I tried everything..

So, I've got a zombie gamemode with a mysql R38 registration system. It worked perfectly but 2 days ago I added some commands etc. and when start the server i get this:


Code:
[16:43:54]    Error: Function not registered: 'SSCANF_Init'
[16:43:54]    Error: Function not registered: 'SSCANF_Join'
[16:43:54]    Error: Function not registered: 'SSCANF_Leave'
[16:43:54]    Error: Function not registered: 'Streamer_CallbackHook'
[16:43:54]    Error: Function not registered: 'mysql_log'
[16:43:54]    Error: Function not registered: 'mysql_connect'
[16:43:54]    Error: Function not registered: 'mysql_errno'
[16:43:54]    Error: Function not registered: 'mysql_close'
[16:43:54]    Error: Function not registered: 'FCNPC_Destroy'
[16:43:54]    Error: Function not registered: 'FCNPC_IsNodeOpen'
[16:43:54]    Error: Function not registered: 'FCNPC_CloseNode'
[16:43:54]    Error: Function not registered: 'mysql_pquery'
[16:43:54]    Error: Function not registered: 'mysql_format'
[16:43:54]    Error: Function not registered: 'FCNPC_GetHealth'
[16:43:54]    Error: Function not registered: 'FCNPC_SetHealth'
[16:43:54]    Error: Function not registered: 'sscanf'
[16:43:54]    Error: Function not registered: 'FCNPC_GetNodeInfo'
[16:43:54]    Error: Function not registered: 'FCNPC_Respawn'
[16:43:54]    Error: Function not registered: 'FCNPC_SetNodePoint'
[16:43:54]    Error: Function not registered: 'FCNPC_GetNodePointPosition'
[16:43:54]    Error: Function not registered: 'FCNPC_SetPosition'
[16:43:54]    Error: Function not registered: 'FCNPC_PlayNode'
[16:43:54]    Error: Function not registered: 'FCNPC_GetPosition'
[16:43:54]    Error: Function not registered: 'FCNPC_SetAngle'
[16:43:54]    Error: Function not registered: 'FCNPC_GoTo'
[16:43:54]    Error: Function not registered: 'FCNPC_IsDead'
[16:43:54]    Error: Function not registered: 'FCNPC_SetKeys'
[16:43:54]    Error: Function not registered: 'FCNPC_SetUpdateRate'
[16:43:54]    Error: Function not registered: 'FCNPC_OpenNode'
[16:43:54]    Error: Function not registered: 'FCNPC_Create'
[16:43:54]    Error: Function not registered: 'FCNPC_Spawn'
[16:43:54]    Error: Function not registered: 'cache_get_row_int'
[16:43:54]    Error: Function not registered: 'cache_get_row'
[16:43:54]    Error: Function not registered: 'cache_get_data'
[16:43:54]    Error: Function not registered: 'cache_insert_id'

I've got 0.3z RC5. I updated plugins and includes:

Code:
SA-MP Dedicated Server
----------------------
v0.3z-RC5, ©2005-2014 SA-MP Team

[16:43:54] filterscripts = ""  (string)
[16:43:54] 
[16:43:54] Server Plugins
[16:43:54] --------------
[16:43:54]  Loading plugin: nativechecker
[16:43:54]   Loaded.
[16:43:54]  Loading plugin: mysql
[16:43:54]  >> plugin.mysql: R38 successfully loaded.
[16:43:54]   Loaded.
[16:43:54]  Loading plugin: sscanf
[16:43:54] 

[16:43:54]  ===============================

[16:43:54]       sscanf plugin loaded.     

[16:43:54]          Version:  2.8.1        

[16:43:54]    © 2012 Alex "******" Cole  

[16:43:54]  ===============================

[16:43:54]   Loaded.
[16:43:54]  Loading plugin: streamer
[16:43:54]   Loaded.
[16:43:54]  Loading plugin: Whirlpool
[16:43:54]  
[16:43:54]  ==================
[16:43:54]  
[16:43:54]   Whirlpool loaded
[16:43:54]  
[16:43:54]  ==================
[16:43:54]  
[16:43:54]   Loaded.
[16:43:54]  Loading plugin: FCNPC
[16:43:54] 
[16:43:54] -------------------------------------------------
[16:43:54]      FCNPC - Fully Controllable NPC v0.1 B12
[16:43:54] 
[16:43:54] - Author: OrMisicL
[16:43:54] - Build:  Feb 24 2014 at 00:35:09
[16:43:54] -------------------------------------------------
[16:43:54] 
[16:43:54] Loading ...
[16:43:54] SAMP Server version 0.3z (Windows) detected. Initializing ...
[16:43:54] FCNPC Loaded.
[16:43:54] 
[16:43:54]   Loaded.
[16:43:54]  Loading plugin: fixchars
[16:43:54] 
[16:43:54]   Loaded.
[16:43:54]  Loaded 7 plugins.
[16:43:54] 
[16:43:54] Filterscripts
[16:43:54] ---------------
[16:43:54]   Loaded 0 filterscripts.

Here is my server.cfg

Code:
echo Executing Server Config...
lanmode 0
rcon_password ddsfsdfd
maxplayers 300
port 7777
hostname SA-MP 0.3 Serverx
gamemode0 basic
filterscripts 
plugins nativechecker mysql sscanf streamer Whirlpool FCNPC fixchars 
announce 0
query 1
chatlogging 0
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 110
logtimeformat [%H:%M:%S]


I tried some things and maybe I found where is the problem.
When i delete this part the server run perfectly but it worked worked with it... I don't know what happend and what is the problem. Help please.

Code:
forward ZombieSetUp();
public ZombieSetUp()
{
	FCNPC_SetUpdateRate(80);
	for(new i = 0; i < MAX_NODES; i++)
	{
	    if(!FCNPC_IsNodeOpen(i) && !FCNPC_OpenNode(i))
 		{
 		    printf("Error: Failed to open node %d from (scriptfiles/FCNPC/Nodes/NODES%d.DAT)", i, i);
 		    return 0;
   		}
	}

	for(new i = 0; i < MAX_ZOMBIES; i++)
	{
		new name[24];
  		format(name, 24, "ZOMBIE%d", i );
		new npcid = FCNPC_Create(name);
		FCNPC_Spawn(npcid, skins[random(7)], 0, 0, 0);
		FCNPC_SetHealth(npcid, 95);

		Zombie[i][ZombieAttackPlayer] = -1;
		Zombie[i][IsFollowing] = -1;
		Zombie[i][nodeStop] = -1;

		new node = random(MAX_NODES);
		while(!LosSantosNodes(node))
		    node = random(MAX_NODES);

		new vehnodes, pednodes, navinodes;
		FCNPC_GetNodeInfo(node, vehnodes, pednodes, navinodes);

		new point;
		if(random(2) == 1 && pednodes != 0)
			point = random(pednodes) + pednodes;
	    else
	        point = random(pednodes);

		FCNPC_SetNodePoint(node, point);

		if(point < vehnodes)
		{
			new Float:x, Float:y, Float:z;
			FCNPC_GetNodePointPosition(node, x, y, z);
			FCNPC_SetPosition(npcid, x, y, z+1);
  		}
		FCNPC_PlayNode(npcid, node, point < pednodes ? NODE_TYPE_PED : NODE_TYPE_PED);
	}
	return 1;
}
Reply
#2

It's not something you should worry about unless you get a run time error 19. The messages are shown because nativechecker was loaded before the other plugins when it should be last.

Change to (in server.cfg):
pawn Code:
plugins mysql sscanf streamer Whirlpool FCNPC fixchars nativechecker
By the way, 0.3z R2-2 has been released. It's always better to update to the latest version: https://sampforum.blast.hk/showthread.php?tid=506214
Reply
#3

same.. console crash without the Error messages.
Reply
#4

For server crashes: load crashdetect plugin.
Reply
#5

i tried the crashdetect.

Quote:

[18:13:22] [debug] Server crashed while executing basic.amx
[18:13:22] [debug] AMX backtrace:
[18:13:22] [debug] #0 native FCNPC_Create () [01475410] from FCNPC.dll
[18:13:22] [debug] #1 000198e8 in public ZombieSetUp () from basic.amx
[18:13:23] [debug] Native backtrace:
[18:13:23] [debug] #0 0048ba52 in ?? () from samp-server.exe

any idea?
Reply
#6

FCNPC_Create causes the crash. Report it in its original thread: https://sampforum.blast.hk/showthread.php?tid=428066
Reply
#7

Thanks for the help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)