From 49d96d4322baf0477c5f5227c5a7a26fd63d7e25 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Sat, 17 Feb 2007 07:31:14 +0000 Subject: [PATCH] Added GetUserMessageName() native spec to usermessages.inc --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40518 --- core/msvc8/sourcemod_mm.vcproj | 22 +++++++++++++++++----- plugins/include/usermessages.inc | 10 ++++++++++ 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/core/msvc8/sourcemod_mm.vcproj b/core/msvc8/sourcemod_mm.vcproj index 79a348b2..954a50e2 100644 --- a/core/msvc8/sourcemod_mm.vcproj +++ b/core/msvc8/sourcemod_mm.vcproj @@ -1,7 +1,7 @@ + + @@ -273,6 +277,10 @@ RelativePath="..\CellRecipientFilter.h" > + + @@ -333,6 +341,10 @@ RelativePath="..\sourcemod.h" > + + - - + + diff --git a/plugins/include/usermessages.inc b/plugins/include/usermessages.inc index 6afb1053..c6ad7395 100644 --- a/plugins/include/usermessages.inc +++ b/plugins/include/usermessages.inc @@ -36,6 +36,16 @@ enum UserMsg */ native UserMsg:GetUserMessageId(const String:msg[]); +/** + * Retrieves the name of a message by ID. + * + * @param msg_id Message index. + * @param msg Buffer to store the name of the message. + * @param maxlength Maximum length of string buffer. + * @return True if message index is valid, false otherwise. + */ +native bool:GetUserMessageName(UserMsg:msg_id, String:msg[], maxlength); + /** * Starts a usermessage (network message). * @note Only one message can be active at a time.