Update README.md

This commit is contained in:
INeedGames 2023-12-15 15:03:41 -06:00 committed by GitHub
parent 1a33de617d
commit 3502a70933
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }
``` ```