Re: [REL] FileManager 1.2 -
Ironboy - 23.05.2011
Nice one JaTochNietDan. I will use it
AW: [REL] FileManager 1.2 -
Meta - 26.05.2011
how about a function to get the file's size?
would be useful...
Re: [REL] FileManager 1.2 -
cs_master - 27.05.2011
wow 10/10 keep it up
Re: [REL] FileManager 1.2 -
CJ101 - 27.05.2011
A Litle Question here. I tried to make a command today that reads from samp.ban
However i noticed something:
file_read does not read from every single line, like the normal system does.
Examples:
Код:
while(file_read("samp.ban",str))
{
if(strfind(str,params) != -1)
{
print(str);
}
}
With the normal file system, you can do that and i will print every different result.
With your plugin, i tried this command like
!bans 127.0.0.1
and it showed a ban, but it was the same ban like 10 times.
:/
Re: [REL] FileManager 1.2 -
TheGarfield - 27.05.2011
Quote:
Originally Posted by PinkFloydLover
Just a thought, would it be possible to view files and folders from the GTA San Andreas directory?
pawn Код:
public OnPlayerConnect(playerid) { if(file_exists("Rockstar Games/GTA San Andreas/hacks")) return Kick(playerid)
It would be the #1 anti-cheat
|
Breaking the rules of privacy. this is illegal !
http://en.wikipedia.org/wiki/Internet_privacy
/\ from Wikipйdia.
nice joob,
more fast of
Dini Or
Fini ?
i hate you!
.
AW: [REL] FileManager 1.2 -
Meta - 11.07.2011
EDIT: Forget it
AW: [REL] FileManager 1.2 -
asdfgh98 - 16.07.2011
Do you work on a version that is not limited to the scriptfiles folder?
Re: AW: [REL] FileManager 1.2 -
JaTochNietDan - 16.07.2011
Quote:
Originally Posted by asdfgh98
Do you work on a version that is not limited to the scriptfiles folder?
|
It's already not limited to the scriptfiles folder!
AW: [REL] FileManager 1.2 -
asdfgh98 - 17.07.2011
Lol but you wrote in the first post:
Can't you just write files with the stand API?
Yes, but it's limited to the "/scriptfiles/" part of your server installation. FileManager will allow you to write files from the root directory of your SA-MP server, so you can write it into filterscripts, gamemodes, etc...
Re: AW: [REL] FileManager 1.2 -
Calgon - 17.07.2011
Quote:
Originally Posted by asdfgh98
Lol but you wrote in the first post:
Can't you just write files with the stand API?
Yes, but it's limited to the "/scriptfiles/" part of your server installation. FileManager will allow you to write files from the root directory of your SA-MP server, so you can write it into filterscripts, gamemodes, etc...
|
'Can't you just write files with the standard API?'
That was in reference to the standard API, as in the SA-MP file functions...
AW: [REL] FileManager 1.2 -
asdfgh98 - 17.07.2011
Oh shit, sry i did not read this ._.
Re: [REL] FileManager 1.2 -
Incubator - 17.07.2011
Is there a way to delete a directory and all of it's containments without first needing to delete tons of files one by one? ;(
Re: [REL] FileManager 1.2 -
Terminator3 - 17.07.2011
on windows yes
Re: [REL] FileManager 1.2 -
Incubator - 17.07.2011
How?
AW: [REL] FileManager 1.2 -
Tion - 18.10.2011
Quote:
It should handle it like the filesystem of the Operating System would handle it.
|
Perhaps creating a md5 hash of both files and compare them ?
Quote:
It only crashed cause there was file_delete and the file didn't exist. Should build in a check or sth...
|
Just put this on top of your script:
Код:
#define file_delete(%1) if(file_exists(%1) { file_delete(%1); }
And @:
Quote:
i use file_move for moving Bot.rec's to a folder after recording.
Код:
StopRecordingPlayerData(playerid);
SendClientMessageEx(playerid,COLOR_RED2, "Stopped recording");
new movedir[50];
format(string, sizeof(string), "scriptfiles/%s.rec", recording[playerid]); // <= REC MISSING
// string was defined at top of OnPlayerCommandText
// recording[playerid] is the filename of Bot-Recording file
format(movedir, sizeof(movedir), "scriptfiles/Bot-Records/%s", recording[playerid]); // <= REC MISSING
file_move(string,movedir);
|
Re: [REL] FileManager 1.2 -
[WSF]ThA_Devil - 29.10.2011
ty nice plug but i got a problem with fire writing... i quiet don't undarstand it:
file_write("foldername/subfoldername/filename.cfg","PingKick", *What do i type here 'cos i get errors... and i didn't undarstood it from test fs *)
Re: [REL] FileManager 1.2 -
Scenario - 04.12.2011
Could I do this with this system?
pawn Код:
file_delete("gamemodes\filename.amx")
EDIT: It only works if I do this:
pawn Код:
file_delete("gamemodes/filename.amx");
Will this not work on Linux due to there needing to be a forward slash, instead of a backwards slash?
Re: [REL] FileManager 1.2 -
SVRP - 28.12.2011
Does the plugin support subfolders?
I want to create a directory within a directory, but when I perform the code the server shuts down because it can't create a file within the directory because the directory doesn't exists, and hasn't been created.
So, would this peace of code work?
pawn Код:
public createFolder(string[])
{
new dir[];
format(dir, sizeof(dir), "folders/custom/%s",string);
if(!dir_exists(dir))
{
dir_create(dir);
}
return 1;
}
Re: [REL] FileManager 1.2 -
Tomer Amar - 28.12.2011
Cool
Re: [REL] FileManager 1.2 -
kizla - 01.01.2012
is this a fastes thing with file,, for creating and reading?