Added GetUserMessageName() native spec to usermessages.inc
authorScott Ehlert <ds@alliedmods.net>
Sat Feb 17 07:31:14 2007 +0000 (2007-02-17)
changeset 51244bc3fc6404c
parent 511 c29f8796bcf4
child 513 0c299b5ad420
Added GetUserMessageName() native spec to usermessages.inc
core/msvc8/sourcemod_mm.vcproj
plugins/include/usermessages.inc
     1.1 --- a/core/msvc8/sourcemod_mm.vcproj	Sat Feb 17 05:33:31 2007 +0000
     1.2 +++ b/core/msvc8/sourcemod_mm.vcproj	Sat Feb 17 07:31:14 2007 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  <?xml version="1.0" encoding="Windows-1252"?>
     1.5  <VisualStudioProject
     1.6  	ProjectType="Visual C++"
     1.7 -	Version="8,00"
     1.8 +	Version="8.00"
     1.9  	Name="sourcemod_mm"
    1.10  	ProjectGUID="{E39527CD-7CAB-4420-97CC-DA1B93B260BC}"
    1.11  	RootNamespace="sourcemod_mm"
    1.12 @@ -200,6 +200,10 @@
    1.13  				>
    1.14  			</File>
    1.15  			<File
    1.16 +				RelativePath="..\CGameEventManager.cpp"
    1.17 +				>
    1.18 +			</File>
    1.19 +			<File
    1.20  				RelativePath="..\CLogger.cpp"
    1.21  				>
    1.22  			</File>
    1.23 @@ -274,6 +278,10 @@
    1.24  				>
    1.25  			</File>
    1.26  			<File
    1.27 +				RelativePath="..\CGameEventManager.h"
    1.28 +				>
    1.29 +			</File>
    1.30 +			<File
    1.31  				RelativePath="..\CLogger.h"
    1.32  				>
    1.33  			</File>
    1.34 @@ -333,6 +341,10 @@
    1.35  				RelativePath="..\sourcemod.h"
    1.36  				>
    1.37  			</File>
    1.38 +			<File
    1.39 +				RelativePath="..\svn_version.h"
    1.40 +				>
    1.41 +			</File>
    1.42  		</Filter>
    1.43  		<Filter
    1.44  			Name="Interfaces"
    1.45 @@ -385,10 +397,6 @@
    1.46  				RelativePath="..\..\public\ITextParsers.h"
    1.47  				>
    1.48  			</File>
    1.49 -			<File
    1.50 -				RelativePath="..\svn_version.h"
    1.51 -				>
    1.52 -			</File>
    1.53  		</Filter>
    1.54  		<Filter
    1.55  			Name="Systems"
    1.56 @@ -654,6 +662,10 @@
    1.57  				>
    1.58  			</File>
    1.59  			<File
    1.60 +				RelativePath="..\smn_events.cpp"
    1.61 +				>
    1.62 +			</File>
    1.63 +			<File
    1.64  				RelativePath="..\smn_filesystem.cpp"
    1.65  				>
    1.66  			</File>
     2.1 --- a/plugins/include/usermessages.inc	Sat Feb 17 05:33:31 2007 +0000
     2.2 +++ b/plugins/include/usermessages.inc	Sat Feb 17 07:31:14 2007 +0000
     2.3 @@ -37,6 +37,16 @@
     2.4  native UserMsg:GetUserMessageId(const String:msg[]);
     2.5  
     2.6  /**
     2.7 + * Retrieves the name of a message by ID.
     2.8 + *
     2.9 + * @param msg_id		Message index.
    2.10 + * @param msg			Buffer to store the name of the message.
    2.11 + * @param maxlength		Maximum length of string buffer.
    2.12 + * @return				True if message index is valid, false otherwise.
    2.13 + */
    2.14 +native bool:GetUserMessageName(UserMsg:msg_id, String:msg[], maxlength);
    2.15 +
    2.16 +/**
    2.17   * Starts a usermessage (network message).
    2.18   * @note Only one message can be active at a time.
    2.19   * @note It is illegal to send any message while a non-intercept hook is in progress.