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 - thegoliathmaster - 14.11.2009

Hi,

thx for your answer :P
so if the file is big, we need a huge string to store the data? maybe something like an array 1024 wide?

The IsNameBanned function changes to :

Code:
IsNameBanned(name[])
{
  new string[1024];//it's the whole file, might be very long...
  if(file_read("samp.ban", string))
  {
    if(strfind(string, name, true) != -1) 
    {
       return 1;
    }
  }
  return 0;
}
or the first one is better?

and, nice plugin


Re: [REL] FileManager - JaTochNietDan - 14.11.2009

That would be fine yes, I admit however it's awkward to read from a ban file like that since the ban file could easily be over one thousand characters long and would require quite large string sizes to store the full data.

So I will definitely look into making a similar function but to read line by line, or any splitter of your choice.


Re: [REL] FileManager - Kurence - 16.11.2009

I have made this:
Code:
public OnFilterScriptInit(){
file_move("scriptfiles/RECORD.rec","npcmodes/recordings");
return 1;
}
but the file is still in scriptfiles
What is wrong?
btw i m sure that plugin is loaded and i have compiled it with that include


Re: [REL] FileManager - Misiek - 16.11.2009

Try this:
Code:
file_move("scriptfiles/RECORD.rec","npcmodes/recordings/RECORD.rec");
That's exactly what I'm going to use this plugin for btw

Thanks.


Re: [REL] FileManager - Kurence - 17.11.2009

Quote:
Originally Posted by Wicko
Try this:
Code:
file_move("scriptfiles/RECORD.rec","npcmodes/recordings/RECORD.rec");
That's exactly what I'm going to use this plugin for btw

Thanks.
now there is file_move("scriptfiles/RECORD.rec","npcmodes/recordings/RECORD.rec");
and it is still in scriptfiles




Re: [REL] FileManager - JaTochNietDan - 17.11.2009

Quote:
Originally Posted by Kurence
Quote:
Originally Posted by Wicko
Try this:
Code:
file_move("scriptfiles/RECORD.rec","npcmodes/recordings/RECORD.rec");
That's exactly what I'm going to use this plugin for btw

Thanks.
now there is file_move("scriptfiles/RECORD.rec","npcmodes/recordings/RECORD.rec");
and it is still in scriptfiles

What Operating System are you using?

Do other features of the plugin work? Also remember if you're using any Linux distribution that it's case sensitive.


Re: [REL] FileManager - Kurence - 17.11.2009

Quote:
Originally Posted by JaTochNietDan
Quote:
Originally Posted by Kurence
Quote:
Originally Posted by Wicko
Try this:
Code:
file_move("scriptfiles/RECORD.rec","npcmodes/recordings/RECORD.rec");
That's exactly what I'm going to use this plugin for btw

Thanks.
now there is file_move("scriptfiles/RECORD.rec","npcmodes/recordings/RECORD.rec");
and it is still in scriptfiles

What Operating System are you using?

Do other features of the plugin work? Also remember if you're using any Linux distribution that it's case sensitive.
Vista


Re: [REL] FileManager - cyber_punk - 17.11.2009

Quote:
Originally Posted by Kurence
Quote:
Originally Posted by JaTochNietDan
Quote:
Originally Posted by Kurence
Quote:
Originally Posted by Wicko
Try this:
Code:
file_move("scriptfiles/RECORD.rec","npcmodes/recordings/RECORD.rec");
That's exactly what I'm going to use this plugin for btw

Thanks.
now there is file_move("scriptfiles/RECORD.rec","npcmodes/recordings/RECORD.rec");
and it is still in scriptfiles

What Operating System are you using?

Do other features of the plugin work? Also remember if you're using any Linux distribution that it's case sensitive.
Vista
Try running samp-server.exe with administrative privileges to allow full file access to samp.


Re: [REL] FileManager - Kurence - 17.11.2009

Quote:
Originally Posted by cyber_punk
Quote:
Originally Posted by Kurence
Quote:
Originally Posted by JaTochNietDan
Quote:
Originally Posted by Kurence
Quote:
Originally Posted by Wicko
Try this:
Code:
file_move("scriptfiles/RECORD.rec","npcmodes/recordings/RECORD.rec");
That's exactly what I'm going to use this plugin for btw

Thanks.
now there is file_move("scriptfiles/RECORD.rec","npcmodes/recordings/RECORD.rec");
and it is still in scriptfiles

What Operating System are you using?

Do other features of the plugin work? Also remember if you're using any Linux distribution that it's case sensitive.
Vista
Try running samp-server.exe with administrative privileges to allow full file access to samp.
I have tryed


Re: [REL] FileManager - JaTochNietDan - 17.11.2009

Permissions could be an issue in Vista, by running as administrator he means right clicking on the samp-server.exe and clicking "Run as administrator".

I've only tested this in Windows XP and CentOS 5.2.

However it should be universal code for both Windows and Linux operating systems as far as I know.


Re: [REL] FileManager - kukars22 - 25.11.2009

Verry useful, thanks!


Re: [REL] FileManager - shindo - 26.12.2009

I just need it, thank you very much!


Re: [REL] FileManager - gijsmin - 26.12.2009

Thanks it works awesome on Debian (for your list )


REL FileManager - brubsifiary - 29.12.2009

I love Pixar and this is a different movie coming from them so i will deffinitely be going to see this.



Dont call me Ricky, ok...call me Ricky, lol


Re: REL FileManager - timmehhh - 29.12.2009

Quote:
Originally Posted by brubsifiary
I love Pixar and this is a different movie coming from them so i will deffinitely be going to see this.



Dont call me Ricky, ok...call me Ricky, lol
? lol wtf?


Re: [REL] FileManager - Calon - 11.01.2010

Does the remove function ACTUALLY work on Linux?


Re: [REL] FileManager - JaTochNietDan - 11.01.2010

Quote:
Originally Posted by Calon
Does the remove function ACTUALLY work on Linux?
I haven't tested that specifically but I don't see why it wouldn't?


Re: [REL] FileManager - Calgon - 12.01.2010

Quote:
Originally Posted by JaTochNietDan
Quote:
Originally Posted by Calon
Does the remove function ACTUALLY work on Linux?
I haven't tested that specifically but I don't see why it wouldn't?
fputchar bug or something on Linux.


Re: [REL] FileManager - Mikep. - 21.01.2010

Is it possible to rename a file?


Re: [REL] FileManager - Calgon - 01.02.2010

jatochnietdan likes balls