From 6528677dcc51441421117f46c6046f16aa289a85 Mon Sep 17 00:00:00 2001 From: OciXCrom Date: Mon, 20 Aug 2018 19:50:43 +0200 Subject: [PATCH] Add @note in get_user_msgid() (#506) * Update lang.inc * Update lang.inc * Update amxmodx.inc * Improve @note phrasing --- plugins/include/amxmodx.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/include/amxmodx.inc b/plugins/include/amxmodx.inc index 0eb42b1e..a60bd0ad 100755 --- a/plugins/include/amxmodx.inc +++ b/plugins/include/amxmodx.inc @@ -2142,6 +2142,9 @@ native random_num(a, b); * @note Example usage: get_user_msgid("TextMsg") * @note The message id is unique as long as the server is running, but might * change between updates. They should not be hardcoded into plugins. + * @note On first server start, this function will return 0 if used inside + * plugin_precache(). Consider hooking RegUserMsg in order to retrieve + * the correct message id. * * @param name Client message name *