File Manager - Function not registered
#1

Please help me with this, it's the only reason why my server wont start!!

https://sampforum.blast.hk/showthread.php?tid=92246 <-- Plugin.
http://solidfiles.com/d/9ca5/ <-- Fixed dll for Plugin

The functions are there, but Idk what's wrong!!

Error:
Код:
[17:38:49]
[17:38:49]    Error: Function not registered: 'dir_open'
[17:38:49]    Error: Function not registered: 'dir_list'
[17:38:49]    Error: Function not registered: 'dir_close'
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[17:38:47] 
[17:38:47] Server Plugins
[17:38:47] --------------
[17:38:47]  Loading plugin: sscanf.dll
[17:38:47] 

[17:38:47]  ===============================

[17:38:47]       sscanf plugin loaded.     

[17:38:47]          Version:  2.8.1        

[17:38:47]    © 2012 Alex "******" Cole  

[17:38:47]  ===============================

[17:38:47]   Loaded.
[17:38:47]  Loading plugin: streamer.dll
[17:38:47] 

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

[17:38:47]   Loaded.
[17:38:47]  Loading plugin: FileManager.dll
[17:38:47] ******************
[17:38:47] ** FILE MANAGER **
[17:38:47] **    Loaded    **
[17:38:47] ** Version 1.1 **
[17:38:47] ******************
[17:38:47]   Loaded.
[17:38:47]  Loading plugin: Whirlpool.dll
[17:38:47]  
[17:38:47]  ==================
[17:38:47]  
[17:38:47]   Whirlpool loaded
[17:38:47]  
[17:38:47]  ==================
[17:38:47]  
[17:38:47]   Loaded.
[17:38:47]  Loading plugin: nativechecker.dll
[17:38:47]   Loaded.
[17:38:47]  Loaded 5 plugins.

[17:38:47] 
[17:38:47] Filterscripts
[17:38:47] ---------------
[17:38:47]   Loading filterscript 'MapMover.amx'...
[17:38:47]   Loading filterscript 'TextDrawEditor.amx'...
[17:38:47] 
--------------------------------------
[17:38:47]  Text Draw Editor 1.0RC2 by Zamaroht for SA-MP 0.3 Loaded.
 Edited by Southclaw for 0.3e Per Player Text Draw and Font 4 sprites support!
[17:38:47] --------------------------------------

[17:38:47]   Loading filterscript 'anims.amx'...
[17:38:47]   Loading filterscript 'animtimer.amx'...
[17:38:47]   Loading filterscript 'cam.amx'...
[17:38:47]   Loading filterscript 'fly.amx'...
[17:38:47]   Loading filterscript 'fps.amx'...
[17:38:48]  
[17:38:48]  
[17:38:48]  
[17:38:48]  ======================================= 
[17:38:48]  |                                     | 
[17:38:48]  |        YSI version 1.06.0002        | 
[17:38:48]  |        By Alex "******" Cole        | 
[17:38:48]  |                                     | 
[17:38:48]  ======================================= 
[17:38:48]  
[17:38:48]  
[17:38:48]  
[17:38:48]   Loading filterscript 'healthcheck.amx'...
[17:38:48]   Loading filterscript 'holdstudio.amx'...
[17:38:48]   Hold Studio v0.1.3 by Slice loaded.
[17:38:48]   Loading filterscript 'maps.amx'...
[17:38:48]    Error: Function not registered: 'dir_open'
[17:38:48]    Error: Function not registered: 'dir_list'
[17:38:48]    Error: Function not registered: 'dir_close'
[17:38:48]   Loading filterscript 'npc.amx'...
[17:38:48]   Loading filterscript 'objtoloot.amx'...
[17:38:48]   Loaded 12 filterscripts.

[17:38:49]    Error: Function not registered: 'localtime'
[17:38:49]    Error: Function not registered: 'strftime'
[17:38:49]    Error: Function not registered: 'dir_open'
[17:38:49]    Error: Function not registered: 'dir_list'
[17:38:49]    Error: Function not registered: 'dir_close'
[17:38:49] Script[gamemodes/sss.amx]: Run time error 19: "File or function is not found"
[17:38:49] Number of vehicle models: 0
FileManager.inc

Код:
/*
	Function: file_move(file[], destination[]);
	Description: Moves a specified file to the specified destination.
	Params:
			file[] - The name of the file to be moved.
			destination[] - The destination to move the file to, including the file name.
			
	Returns: True if success, false if not.
*/
native file_move(file[], destination[]);

/*
	Function: file_copy(file[], destination[]);
	Description: Copies a specified file to the specified destination.
	Params:
			file[] - The name of the file to be copied.
			destination[] - The new destination of the file to be copied to, including the file name.
			
	Returns: True if success, false if not.
*/
native file_copy(file[], destination[]);

/*
	Function: file_delete(file[]);
	Description: Deletes a specified file.
	Params:
			file[] - The name of the file to be deleted.
			
	Returns: True if success, false if not.
*/
native file_delete(file[]);

/*
	Function: file_create(file[]);
	Description: Creates a specified file.
	Params:
			file[] - The name of the file to be created.
			
	Returns: True if success, false if not.
*/
native file_create(file[]);

/*
	Function: file_write(file[], text[], mode[] = "a");
	Description: Writes a string to a specified file with the specified mode.
	Params:
			file[] - The name of the file to be written to.
			text[] - The string to write to the file.
			mode[] - The mode to use (doesn't need to be specified, will append by default, can be set otherwise)
			
	Returns: True if success, false if not.
*/
native file_write(file[], text[], mode[] = "a");

/*
	Function: file_read(file[], storage[], size = sizeof(storage));
	Description: Reads the entire file into a specified string.
	Params:
			file[] - The name of the file to be read into memory.
			storage[] - The array to store the read data in.
			size[] - The size of the storage array (used to prevent buffer overflows), no reason for you to specify it in practice.
			
	Returns: True if success, false if not.
*/
native file_read(file[], storage[], size = sizeof(storage));

/*
	Function: file_log();
	Description: Will enable filemanager logging (prints information about file operations).
*/
native file_log();

/*
	Function: file_exists(file[]);
	Description: Checks if a specified file exists.
	Params:
			file[] - The name of the file to be checked for existence.
			
	Returns: True if success, false if not.
*/
native file_exists(file[]);

/*
	Function: f_open(file[], mode[] = "r");
	Description: Opens a file for a reading operation.
	Params:
			file[] - The name of the file to be opened.
			mode[] (Optional) - This can be used to set the mode, use "w" for write, "r" for read and "a" for append.
			
	Returns: The file handle if success, else it returns false.
*/
native File:f_open(file[], mode[] = "r"); 

/*
	Function: f_close(File: file);
	Description: Closes a file opened with f_open.
	Params:
			File:file - The handler of the file to be closed

	Returns: True if success, false if not.
*/
native f_close(File: file);

/*
	Function: f_read(File: file, storage[], size = sizeof(storage));
	Description: Reads from file that was opened by f_open line by line.
	Params:
			File:file - The handler of the file to be read from.
			storage[] - The string to store the read data from.
			size - This parameter does not need to be set by you.
			
	Returns: True if success, false if not.
*/
native f_read(File: file, storage[], size = sizeof(storage));

/*
	Function: f_write(File: file, string[]);
	Description: Writes to a file that has been opened using f_open.
	Params:
			File:file - The handler of the file to be read from.
			string[] - The string to write to the file.
			
	Returns: True if success, false if not.
*/
native f_write(File: file, string[]);

/*
	Function: dir_create(directory[]);
	Description: Creates a directory.
	Params:
			directory[] - The path of the directory to be created.
			
	Returns: True if success, false if not.
*/
native dir_create(directory[]);

/*
	Function: dir_delete(directory[]);
	Description: Deletes a directory.
	Params:
			directory[] - The path of the directory to be deleted.
			
	Returns: True if success, false if not.
*/
native dir_delete(directory[]);

/*
	Function: dir_exists(directory[]);
	Description: Checks if a directory exists
	Params:
			directory[] - The path of the directory to be deleted.
			
	Returns: 1 if it exists, 2 if it is a file and 0 if it does not exist.
*/
native dir_exists(directory[]);

/*
	Function: dir:dir_open(directory[]);
	Description: Opens a directory
	Params:
			directory[] - The path of the directory to be opened.
			
	Returns: 1 if it exists, and 0 if it does not exist.
*/
native dir:dir_open(directory[]);

/*
	Function: dir_close(dir:handle);
	Description: Closes a directory
	Params:
			dir:handle - The handle of the directory to close that was previously opened.
			
	Returns: Nothing.
*/
native dir_close(dir:handle);

/*
	Function: dir_list(dir:handle, storage[], &type, length = sizeof(storage));
	Description: Reads through a directory, listing each file/sub-directory one by one.
	Params:
			dir:handle - The handle of the directory that is open to read from.
			storage[] - Where the name of the file/directory is stored.
			type - Where the type of directory is stored, can be either 1 or 2
			(optional) length - This is not needed unless you are passing an array without any length, in which case, use strlen with your array.
			
	Returns: 1 if there a sub-directory/file was found, 0 if there wasn't.
*/
native dir_list(dir:handle, storage[], &type, length = sizeof(storage));

// FM_DIR defines a directory and FM_FILE defines a file
// when using dir_list, these will be the types returned.
#define FM_DIR 1
#define FM_FILE 2
Reply
#2

Bump.
Reply
#3

Try running without those three and post the result.
'dir_open'
'dir_list'
'dir_close'
Reply
#4

Yeah, could it be the plugin and include version are different from eachother? Maybe he removed those functions from the plugin and include, but if you have a older version it's not updated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)