[Plugin] FileFunctions v0.1b
#21

Quote:
Originally Posted by xir
View Post
Can I ask what's the difference? Because it's not limited to scriptfiles either?
Hard to read the topic and check the source before asking questions?
Reply
#22

Sorry, I won't be asking anymore..
Reply
#23

nice work
Reply
#24

Nice, but could you add a function to copy the file ? (like FileMove without deleting the original file)
Reply
#25

Good job Ryder, much more functionality than my own similar plugin.
Reply
#26

Quote:
Originally Posted by olaf137
View Post
Nice, but could you add a function to copy the file ? (like FileMove without deleting the original file)
Nice idea, I will add that.
Reply
#27

include INI system into it...
i will use when you done ini system,
adding:-
INI_String(filename,tag,strinbg[]);
INI_GetString(filename,tag);
INI_Restring(filename,oldtag[],new tag[]);
.... same fpr every thing like int, float , and more


ANYWAY NICE ONE!!!
Reply
#28

There is already loads of different INI systems, we don't need any more.
Reply
#29

k 00ne
i agree too
Reply
#30

When is the nice update done?

Cant wait for it
Reply
#31

Nice
Reply
#32

No Linux?
Reply
#33

Can you add this functions ?:
pawn Код:
GetFileInDirectoryByIndex(index,dir[], return_filename[], len);
CountFilesInDirectory(dir[]);
For example we have 5 files in directory "mydir" called: file1, lolfile, xfile, nyanfile, evilfile
Function GetFileInDirectoryByIndex will be return this file names by index:
pawn Код:
EXAMPLE 1:

GetFileInDirectoryByIndex(1,"mydir") = file1
GetFileInDirectoryByIndex(2,"mydir") = lolfile
GetFileInDirectoryByIndex(3,"mydir") = xfile
GetFileInDirectoryByIndex(4,"mydir") = nyanfile
GetFileInDirectoryByIndex(5,"mydir") = evilfile
pawn Код:
EXAMPLE 2:
new fname[50];
for(new f = 1; f < CountFilesInDirectory("mydir"); f++)
{
GetFileInDirectoryByIndex(f,"mydir", fname, sizeof(fname));
printf("File index:%d name:%s",f,fname);
}
did you understand ?
Reply
#34

Quote:
Originally Posted by __[ShaDoW]__
Посмотреть сообщение
Can you add this functions ?:
pawn Код:
GetFileInDirectoryByIndex(index,dir[], return_filename[], len);
CountFilesInDirectory(dir[]);
For example we have 5 files in directory "mydir" called: file1, lolfile, xfile, nyanfile, evilfile
Function GetFileInDirectoryByIndex will be return this file names by index:
pawn Код:
EXAMPLE 1:

GetFileInDirectoryByIndex(1,"mydir") = file1
GetFileInDirectoryByIndex(2,"mydir") = lolfile
GetFileInDirectoryByIndex(3,"mydir") = xfile
GetFileInDirectoryByIndex(4,"mydir") = nyanfile
GetFileInDirectoryByIndex(5,"mydir") = evilfile
pawn Код:
EXAMPLE 2:
new fname[50];
for(new f = 1; f < CountFilesInDirectory("mydir"); f++)
{
GetFileInDirectoryByIndex(f,"mydir", fname, sizeof(fname));
printf("File index:%d name:%s",f,fname);
}
did you understand ?
Yes, I will add that. Update will be soon.
Reply
#35

Thanks. Nice work RyDeR`
Reply
#36

Nice work
Reply
#37

Nice one RyDeR.
Reply
#38

FileIsDirectory if it hasn't been suggest yet.
Reply
#39

OK, enough suggestions I guess? I will start working on a completely new version tomorrow. Check topic sometimes..
Reply
#40

Can i hope for a upcoming linux version?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)