AMX Mod X API Documentation

Signature
native LoadFileForMe(const file[], buffer[], maxlength, &length = 0);
Description

Loads a file using the LoadFileForMe engine function.

Notes
  • The data is truncated if there is not enough space. No null-terminator

    is applied; the data is the raw contents of the file.

Parameters
  • file File to load (may be a file from the GCF)
  • buffer Buffer to store file contents
  • maxlength Maximum size of the file buffer
  • length Variable to store the file length. This may return

    a number larger than the buffer size

Returns

-1 if the file could not be loaded. Otherwise,

the number of cells actually written to the buffer

are returned.

Назад
Верх