AMX Mod X API Documentation

Signature
native entity_get_string(iIndex, iKey, szReturn[], iRetLen);
Description

Retrieves a string type value from an entities entvar struct.

Notes
  • For a list of valid string type entries, see the EV_SZ_* constants in

    engine_const.inc

Parameters
  • iIndex Entity index
  • iKey Entry to retrieve from
  • szReturn Buffer to copy value to
  • iRetLen Maximum size of buffer
Returns

Number of cells written to buffer, 0 if an invalid entry

was specified

Errors
  • If an invalid entity index is provided, an error will be

    thrown.

Назад
Верх