SA-MP Forums Archive
[Plugin] [REL] FileManager 1.4 (24th of June 2012) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] [REL] FileManager 1.4 (24th of June 2012) (/showthread.php?tid=92246)

Pages: 1 2 3 4 5 6 7 8


Re: [REL] FileManager 1.4 (24th of June 2012) - admantis - 04.10.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/


Re: [REL] FileManager 1.4 (24th of June 2012) - Emmet_ - 04.10.2012

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


Re: [REL] FileManager 1.4 (24th of June 2012) - Pottus - 06.11.2012

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


Re: [REL] FileManager 1.4 (24th of June 2012) - newbienoob - 17.08.2013

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


Re: [REL] FileManager 1.4 (24th of June 2012) - Bit - 17.08.2013

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***.


Re: [REL] FileManager 1.4 (24th of June 2012) - newbienoob - 17.08.2013

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?


Re: [REL] FileManager 1.4 (24th of June 2012) - Bit - 17.08.2013

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


AW: [REL] FileManager 1.4 (24th of June 2012) - BigETI - 17.08.2013

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


Re: [REL] FileManager 1.4 (24th of June 2012) - shaPP - 21.09.2013

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;
}



Re: [REL] FileManager 1.4 (24th of June 2012) - QuaTTrO - 21.09.2013

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;
}



Re: [REL] FileManager 1.4 (24th of June 2012) - shaPP - 21.09.2013

Thanks, i tought scriptfiles is by default selected.


Re: [REL] FileManager 1.4 (24th of June 2012) - VIRUXE - 25.02.2014

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


Re: [REL] FileManager 1.4 (24th of June 2012) - RenovanZ - 08.03.2014

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


Re: [REL] FileManager 1.4 (24th of June 2012) - Battlezone - 08.03.2014

Awesome!


Re : [REL] FileManager 1.4 (24th of June 2012) - jojo62 - 27.03.2014

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


Re: [REL] FileManager 1.4 (24th of June 2012) - Tidzii - 02.06.2014

Can you help please ?

Quote:

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




Re: [REL] FileManager 1.4 (24th of June 2012) - Slice - 31.07.2014

Код:
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.



Re: [REL] FileManager 1.4 (24th of June 2012) - maddinat0r - 31.07.2014

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.


Re: [REL] FileManager 1.4 (24th of June 2012) - nimagame - 14.08.2014

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


Re: [REL] FileManager 1.4 (24th of June 2012) - Mauzen - 14.08.2014

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