From 867368f56d28fa15500eaa6ffc25db7cdca89703 Mon Sep 17 00:00:00 2001 From: Nord1cWarr1or <47604048+Nord1cWarr1or@users.noreply.github.com> Date: Fri, 17 Mar 2023 20:53:44 +0000 Subject: [PATCH] Improved description for `rg_get_weapon_info` (#269) --- reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc | 2 ++ reapi/src/natives/natives_misc.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc b/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc index 00b8970..92cc4d8 100644 --- a/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc +++ b/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc @@ -466,6 +466,8 @@ native bool:rg_has_item_by_name(const index, const item[]); * @param weapon name or id Weapon id, see WEAPON_* constants, WeaponIdType or weapon_* name * @param WpnInfo:type Info type, see WI_* constants * +* @note weapon_* name can only be used to get WI_ID +* * @return Weapon information * @error If weapon_id or type are out of bounds, an error will be thrown */ diff --git a/reapi/src/natives/natives_misc.cpp b/reapi/src/natives/natives_misc.cpp index d06a122..a4f6065 100644 --- a/reapi/src/natives/natives_misc.cpp +++ b/reapi/src/natives/natives_misc.cpp @@ -752,6 +752,8 @@ cell AMX_NATIVE_CALL rg_has_item_by_name(AMX *amx, cell *params) * @param weapon name or id Weapon id, see WEAPON_* constants, WeaponIdType or weapon_* name * @param WpnInfo:type Info type, see WI_* constants * +* @note weapon_* name can only be used to get WI_ID +* * @return Weapon information * @error If weapon_id or type are out of bounds, an error will be thrown *