Skip to content

Commit 15aca1d

Browse files
Fix wrong native error description (#236)
* Update natives_common.cpp * Update reapi_engine.inc * Update reapi_engine.inc add error description * Update natives_common.cpp * reapi_engine.inc: add error in `set_key_value` desc * natives_common.cpp: add error in `set_key_value` desc
1 parent 1ce917b commit 15aca1d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

reapi/extra/amxmodx/scripting/include/reapi_engine.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ native any:get_ucmd(const ucmd, const UCmd:var, any:...);
3939
* @param maxlen Maximum size of the buffer
4040
*
4141
* @return Number of cells written to buffer
42-
* @error If the index is not within the range of 1 to MaxClients or
43-
* the client is not connected, an error will be thrown.
42+
* @error If invalid buffer handler provided, an error will be thrown.
4443
*/
4544
native get_key_value(const pbuffer, const key[], const value[], const maxlen);
4645

@@ -52,6 +51,7 @@ native get_key_value(const pbuffer, const key[], const value[], const maxlen);
5251
* @param value Value to set
5352
*
5453
* @noreturn
54+
* @error If invalid buffer handler provided, an error will be thrown.
5555
*/
5656
native set_key_value(const pbuffer, const key[], const value[]);
5757

reapi/src/natives/natives_common.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ cell AMX_NATIVE_CALL amx_get_viewent(AMX *amx, cell *params)
122122
* @param maxlen Maximum size of the buffer
123123
*
124124
* @return Number of cells written to buffer
125-
* @error If the index is not within the range of 1 to MaxClients or
126-
* the client is not connected, an error will be thrown.
125+
* @error If invalid buffer handler provided, an error will be thrown.
127126
*
128127
* native get_key_value(const pbuffer, const key[], const value[], const maxlen);
129128
*/
@@ -152,6 +151,7 @@ cell AMX_NATIVE_CALL amx_get_key_value(AMX *amx, cell *params)
152151
* @param value Value to set
153152
*
154153
* @noreturn
154+
* @error If invalid buffer handler provided, an error will be thrown.
155155
*
156156
* native set_key_value(const &pbuffer, const key[], const value[]);
157157
*/

0 commit comments

Comments
 (0)