AMX Mod X API Documentation

Signature
native parse_loguser(const text[], name[], nlen, &userid = -2, authid[] = "", alen = 0, team[] = "", tlen = 0);
Description

Parse log data about client.

Notes
  • When client actions are logged, they appear in the the format

    "Name<#userid>", this native extracts the individual

    pieces of information.

Parameters
  • text String to process
  • name Buffer to copy client name to
  • nlen Maximum name buffer size
  • userid Variable to store userid in
  • authid Buffer to copy client authid to
  • alen Maximum auth buffer size
  • team Buffer to copy client team to
  • tlen Maximum team buffer size
No return value
Errors
  • If the provided string is not valid client log data, an

    error will be thrown.

Назад
Верх