Add comment about common.phrases to FindTarget (#1155)

* Add note about common.phrases

* Update helpers.inc

Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
This commit is contained in:
Impact 2020-01-15 00:00:27 +01:00 committed by Kyle Sanderson
parent 9d978f5581
commit 9f4c6c61d9

View File

@ -150,6 +150,10 @@ stock int SearchForClients(const char[] pattern, int[] clients, int maxClients)
* Wraps ProcessTargetString() and handles producing error messages for
* bad targets.
*
* Note that you should use LoadTranslations("common.phrases") in OnPluginStart().
* "common.phrases" contains all of the translatable phrases that FindTarget() will
* reply with in the event a target is not found (error).
*
* @param client Client who issued command
* @param target Client's target argument
* @param nobots Optional. Set to true if bots should NOT be targetted