SA-MP Forums Archive
[Plugin] FileFunctions v0.1b - 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] FileFunctions v0.1b (/showthread.php?tid=252918)

Pages: 1 2 3


Re: FileFunctions v0.1b - RyDeR` - 05.05.2011

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?


Re: FileFunctions v0.1b - xir - 05.05.2011

Sorry, I won't be asking anymore..


Re: FileFunctions v0.1b - SlashPT - 05.05.2011

nice work


Re: FileFunctions v0.1b - olaf137 - 05.05.2011

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


Re: FileFunctions v0.1b - JaTochNietDan - 05.05.2011

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


Re: FileFunctions v0.1b - RyDeR` - 05.05.2011

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.


Re: FileFunctions v0.1b - Unknown1234 - 06.05.2011

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!!!


Re: FileFunctions v0.1b - Calgon - 06.05.2011

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


Re: FileFunctions v0.1b - Unknown1234 - 06.05.2011

k 00ne
i agree too


Re: FileFunctions v0.1b - fissekarl - 07.05.2011

When is the nice update done?

Cant wait for it


Re: FileFunctions v0.1b - [RSL]KobRa - 08.05.2011

Nice


AW: FileFunctions v0.1b - Meta - 26.05.2011

No Linux?


Re: FileFunctions v0.1b - QuaTTrO - 19.06.2011

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 ?


Re: FileFunctions v0.1b - RyDeR` - 19.06.2011

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.


Re: FileFunctions v0.1b - GobL1N - 19.06.2011

Thanks. Nice work RyDeR`


Re: FileFunctions v0.1b - [BP]Tony - 22.06.2011

Nice work


Re: FileFunctions v0.1b - FANEX - 04.07.2011

Nice one RyDeR.


Re: FileFunctions v0.1b - langricr - 04.07.2011

FileIsDirectory if it hasn't been suggest yet.


Re: FileFunctions v0.1b - RyDeR` - 04.07.2011

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


AW: FileFunctions v0.1b - asdfgh98 - 16.07.2011

Can i hope for a upcoming linux version?