Update small includes for transitional syntax (#509)
This commit is contained in:
committed by
Nicholas Hastings
parent
d8835a426f
commit
7451257578
@@ -75,14 +75,14 @@
|
||||
* if one valid client is found. Otherwise, a COMMAND_TARGET reason
|
||||
* for failure is returned.
|
||||
*/
|
||||
native ProcessTargetString(const String:pattern[],
|
||||
admin,
|
||||
targets[],
|
||||
max_targets,
|
||||
filter_flags,
|
||||
String:target_name[],
|
||||
tn_maxlength,
|
||||
&bool:tn_is_ml);
|
||||
native int ProcessTargetString(const char[] pattern,
|
||||
int admin,
|
||||
int[] targets,
|
||||
int max_targets,
|
||||
int filter_flags,
|
||||
char[] target_name,
|
||||
int tn_maxlength,
|
||||
bool &tn_is_ml);
|
||||
|
||||
/**
|
||||
* Replies to a client with a given message describing a targetting
|
||||
@@ -92,9 +92,8 @@ native ProcessTargetString(const String:pattern[],
|
||||
*
|
||||
* @param client Client index, or 0 for server.
|
||||
* @param reason COMMAND_TARGET reason.
|
||||
* @noreturn
|
||||
*/
|
||||
stock ReplyToTargetError(client, reason)
|
||||
stock void ReplyToTargetError(int client, int reason)
|
||||
{
|
||||
switch (reason)
|
||||
{
|
||||
@@ -149,17 +148,14 @@ typedef MultiTargetFilter = function bool (const char[] pattern, Handle clients)
|
||||
* @param filter Filter function.
|
||||
* @param phrase Descriptive phrase to display on successful match.
|
||||
* @param phraseIsML True if phrase is multi-lingual, false otherwise.
|
||||
* @noreturn
|
||||
*/
|
||||
native AddMultiTargetFilter(const String:pattern[], MultiTargetFilter:filter,
|
||||
const String:phrase[], bool:phraseIsML);
|
||||
native void AddMultiTargetFilter(const char[] pattern, MultiTargetFilter filter,
|
||||
const char[] phrase, bool phraseIsML);
|
||||
|
||||
/**
|
||||
* Removes a multi-target filter function from ProcessTargetString().
|
||||
*
|
||||
* @param pattern Pattern to match (case sensitive).
|
||||
* @param filter Filter function.
|
||||
* @noreturn
|
||||
*/
|
||||
native RemoveMultiTargetFilter(const String:pattern[], MultiTargetFilter:filter);
|
||||
|
||||
native void RemoveMultiTargetFilter(const char[] pattern, MultiTargetFilter filter);
|
||||
|
||||
Reference in New Issue
Block a user