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

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="Windows-1252"?> <?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject <VisualStudioProject
ProjectType="Visual C++" ProjectType="Visual C++"
Version="8,00" Version="8.00"
Name="sourcemod_mm" Name="sourcemod_mm"
ProjectGUID="{E39527CD-7CAB-4420-97CC-DA1B93B260BC}" ProjectGUID="{E39527CD-7CAB-4420-97CC-DA1B93B260BC}"
RootNamespace="sourcemod_mm" RootNamespace="sourcemod_mm"
@ -199,6 +199,10 @@
RelativePath="..\CDbgReporter.cpp" RelativePath="..\CDbgReporter.cpp"
> >
</File> </File>
<File
RelativePath="..\CGameEventManager.cpp"
>
</File>
<File <File
RelativePath="..\CLogger.cpp" RelativePath="..\CLogger.cpp"
> >
@ -273,6 +277,10 @@
RelativePath="..\CellRecipientFilter.h" RelativePath="..\CellRecipientFilter.h"
> >
</File> </File>
<File
RelativePath="..\CGameEventManager.h"
>
</File>
<File <File
RelativePath="..\CLogger.h" RelativePath="..\CLogger.h"
> >
@ -333,6 +341,10 @@
RelativePath="..\sourcemod.h" RelativePath="..\sourcemod.h"
> >
</File> </File>
<File
RelativePath="..\svn_version.h"
>
</File>
</Filter> </Filter>
<Filter <Filter
Name="Interfaces" Name="Interfaces"
@ -385,10 +397,6 @@
RelativePath="..\..\public\ITextParsers.h" RelativePath="..\..\public\ITextParsers.h"
> >
</File> </File>
<File
RelativePath="..\svn_version.h"
>
</File>
</Filter> </Filter>
<Filter <Filter
Name="Systems" Name="Systems"
@ -653,6 +661,10 @@
RelativePath="..\smn_datapacks.cpp" RelativePath="..\smn_datapacks.cpp"
> >
</File> </File>
<File
RelativePath="..\smn_events.cpp"
>
</File>
<File <File
RelativePath="..\smn_filesystem.cpp" RelativePath="..\smn_filesystem.cpp"
> >

View File

@ -36,6 +36,16 @@ enum UserMsg
*/ */
native UserMsg:GetUserMessageId(const String:msg[]); 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). * Starts a usermessage (network message).
* @note Only one message can be active at a time. * @note Only one message can be active at a time.