[Plugin] [REL] FileManager 1.1

25 октября 2010 | Рубрика: Pawn libraries


Что делает этот плагин?
Плагин FileManager позволит управлять вам файлами и папками.
Теперь вы сможете записывать файлы прямо из игры в папку scriptfiles,gamemodes и другие.
Чем полезен этот плагин?
Он может читать/записывать/удалять файлы которые расположены в разных каталогах(папках) вашего сервера.

Функции инклуда:

Code

native file_move(file[],destination[]); // Moves a file<br>native file_delete(file[]); // Deletes a file<br>native file_create(file[]); // Creates a file<br>native file_write(file[],text[],mode[] = «a»); // Writes in append mode to a file, option to set write mode, append mode is default<br>native file_read(file[],storage[], sizeof(storage)); // Saves to the specified string<br>native file_log(); // Adding this will enable logging<br>native file_exists(file[]); // Check if a file exists<br><br>native dir_create(directory[]); // Creates a new directory<br>native dir_delete(directory[]); // Deletes a directory (Directory MUST be empty!)<br>native dir_exists(directory[]); // Check if a directory exists


С какими ОС работает плагин?

Тестировалось на:
Windows XP Professional SP3
Windows 7 Ultimate 64 bit
CentOS 5
Debian