mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-04-19 21:22:54 +00:00
Merge branch 'main' of https://github.com/JezuzLizard/T4SP-Server-Plugin
This commit is contained in:
commit
38a860e4ce
@ -91,13 +91,15 @@ All files will be closed upon GSC restart (map_restart or fast_restart or missio
|
|||||||
|
|
||||||
* `<array of strings> FS_ListFiles(<folder string>)` Returns a list of files inside of the folder given.
|
* `<array of strings> FS_ListFiles(<folder string>)` Returns a list of files inside of the folder given.
|
||||||
```gsc
|
```gsc
|
||||||
files = FS_ListFiles("testfolder/");
|
folder = "testfolder/";
|
||||||
|
files = FS_ListFiles(folder);
|
||||||
|
|
||||||
for (i = 0; i < files.size; i++)
|
for (i = 0; i < files.size; i++)
|
||||||
{
|
{
|
||||||
file = files[i]; // will be "testfolder/<filename>"
|
filename = files[i];
|
||||||
|
|
||||||
// do something with the filename
|
// do something with the filename
|
||||||
|
filepath = folder + filename;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user