AMX Mod X API Documentation

Signature
native next_file(dirh, buffer[], length, &FileType:type = FileType_Unknown);
Description

Reads the next directory entry as a local filename.

Notes
  • Contents of buffers are undefined when returning false.
  • Both the '.' and '..' automatic directory entries will be retrieved for Windows and Linux.
Parameters
  • dirh Handle to a directory
  • buffer String buffer to hold directory name
  • length Maximum size of string buffer
  • type Optional variable to store the file type. FileType_* constants
Returns

1 on success, 0 if there are no more files to read.

Назад
Верх