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

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
Reply
#22

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.
Reply
#23

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
Reply
#24

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.
Reply
#25

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

Reply
#26

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.
Reply
#27

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
Reply
#28

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.
Reply
#29

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
Reply
#30

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.
Reply
#31

Verry useful, thanks!
Reply
#32

I just need it, thank you very much!
Reply
#33

Thanks it works awesome on Debian (for your list )
Reply
#34

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
Reply
#35

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?
Reply
#36

Does the remove function ACTUALLY work on Linux?
Reply
#37

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?
Reply
#38

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.
Reply
#39

Is it possible to rename a file?
Reply
#40

jatochnietdan likes balls
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)