[Plugin] [REL] FileManager 1.4 (24th of June 2012)

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
I get this error whenever I start the server with this plugin:

"The procedure entry point GetTickCount64 could not be located in the dynamic link library KERNEL32.dll."



Using Windows XP Home Edition 32 bit, Service Pack 3.
Use this version posted by Zeex in the tenth page:
http://solidfiles.com/d/9ca5/
Reply

Quote:
Originally Posted by admantis
Посмотреть сообщение
Use this version posted by Zeex in the tenth page:
http://solidfiles.com/d/9ca5/
Thanks, working now.
Reply

dir_list appears to return 2 for type file in windows but 0 for type file in linux whats up with that shit ?
Reply

So.. I can check if players have s0b*** installed?
Reply

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
So.. I can check if players have s0b*** installed?
Possibly. I'm doing a script with this plugin to see if it can detect s0b***.
Reply

Quote:
Originally Posted by Bit
Посмотреть сообщение
Possibly. I'm doing a script with this plugin to see if it can detect s0b***.
Great! You will release it if it's possible?
Reply

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
Great! You will release it if it's possible?
Will do! Need community-suggested improvements and feedbacks on it too
Reply

You can only browse through your server's directories, nothing more.
Reply

How may i count files in a folder? I did this and it is not working

Код:
stock NumFiles(type2)
{
	new string[50];
	if(type2 == 1) format(string, sizeof(string), "Vehicles/normal/");
	else if(type2 == 3) format(string, sizeof(string), "Vehicles/personal/");
	else if(type2 == 4) format(string, sizeof(string), "Vehicles/faction/");
	else if(type2 == 5) format(string, sizeof(string), "Vehicles/job/");
	else if(type2 == 6) format(string, sizeof(string), "Vehicles/biz/");
	
	new dir:dHandle = dir_open(string);
	new item[40], type, contor = -1;
		
	while(dir_list(dHandle, item, type))
	{
		if(type == FM_FILE) contor++;
	}
			
	dir_close(dHandle);
	return contor;
}
Reply

Quote:
Originally Posted by shaPP
Посмотреть сообщение
How may i count files in a folder? I did this and it is not working

Код:
stock NumFiles(type2)
{
	new string[50];
	if(type2 == 1) format(string, sizeof(string), "Vehicles/normal/");
	else if(type2 == 3) format(string, sizeof(string), "Vehicles/personal/");
	else if(type2 == 4) format(string, sizeof(string), "Vehicles/faction/");
	else if(type2 == 5) format(string, sizeof(string), "Vehicles/job/");
	else if(type2 == 6) format(string, sizeof(string), "Vehicles/biz/");
	
	new dir:dHandle = dir_open(string);
	new item[40], type, contor = -1;
		
	while(dir_list(dHandle, item, type))
	{
		if(type == FM_FILE) contor++;
	}
			
	dir_close(dHandle);
	return contor;
}
Where is vehicle folder? If in scriptfiles then it should look like this:

Код:
stock NumFiles(type2)
{
	new string[50];
	if(type2 == 1) format(string, sizeof(string), "scriptfiles/Vehicles/normal/");
	else if(type2 == 3) format(string, sizeof(string), "scriptfiles/Vehicles/personal/");
	else if(type2 == 4) format(string, sizeof(string), "scriptfiles/Vehicles/faction/");
	else if(type2 == 5) format(string, sizeof(string), "scriptfiles/Vehicles/job/");
	else if(type2 == 6) format(string, sizeof(string), "scriptfiles/Vehicles/biz/");
	
	new dir:dHandle = dir_open(string);
	new item[40], type, contor = -1;
		
	while(dir_list(dHandle, item, type))
	{
		if(type == FM_FILE) contor++;
	}
			
	dir_close(dHandle);
	return contor;
}
Reply

Thanks, i tought scriptfiles is by default selected.
Reply

Compiled in DEBUG mode under a Windows 8.1 x64 crappy laptop with Visual Studio 2013 Ultimate:

http://puu.sh/7adCR.dll - Virus free don't worry.

Latest version (1.5) compiled in RELEASE mode with the same specs:

http://puu.sh/7bGXT.dll
Reply

This plugin was very useful! Helping me to control my chatlogging, etc!
Reply

Awesome!
Reply

Can you release the .inc file please ? Thank you.
Reply

Can you help please ?

Quote:

[16:56:15] Loading plugin: FileManager
[16:56:15] Failed.

Reply

Код:
backtrace:
#0  0xf7db9c94 in readdir () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
No symbol table info available.
#1  0xf7c77b42 in n_dir_list(tagAMX*, int*) () from plugins/filemanager.so
No symbol table info available.
#2  0x08094054 in ?? ()
No symbol table info available.
#3  0x08095af5 in ?? ()
No symbol table info available.
#4  0x080dcea2 in ?? ()
No symbol table info available.
#5  0x08094054 in ?? ()
No symbol table info available.
#6  0x08095af5 in ?? ()
No symbol table info available.
#7  0x080dcea2 in ?? ()
No symbol table info available.
#8  0x08094054 in ?? ()
No symbol table info available.
#9  0x08095af5 in ?? ()
No symbol table info available.
#10 0x080a3a6b in ?? ()
No symbol table info available.
#11 0x080a9e2d in ?? ()
No symbol table info available.
#12 0x080a86d2 in ?? ()
No symbol table info available.
#13 0xf7d33e66 in __libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
No symbol table info available.
#14 0x0804b4d1 in ?? ()
No symbol table info available.
Reply

Maybe you are passing an invalid directory handle to 'dir_list'? If you print the directory handle as a normal number and get '0', you very likely found the cause of that crash.
Reply

Can I search a file in player gta sa folder??
Reply

Quote:
Originally Posted by nimagame
Посмотреть сообщение
Can I search a file in player gta sa folder??
No you can only access the servers files.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)