Added GetUserMessageName() native spec to usermessages.inc

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40518
This commit is contained in:
Scott Ehlert
2007-02-17 07:31:14 +00:00
parent e7759cabea
commit 49d96d4322
2 changed files with 27 additions and 5 deletions
+10
View File
@@ -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.