2
0
mirror of https://github.com/rehlds/reapi.git synced 2025-01-14 15:48:03 +03:00

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
This commit is contained in:
Nord1cWarr1or 2021-12-28 18:32:53 +03:00 committed by GitHub
parent 1ce917b440
commit 15aca1d799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -39,8 +39,7 @@ native any:get_ucmd(const ucmd, const UCmd:var, any:...);
* @param maxlen Maximum size of the buffer
*
* @return Number of cells written to buffer
* @error If the index is not within the range of 1 to MaxClients or
* the client is not connected, an error will be thrown.
* @error If invalid buffer handler provided, an error will be thrown.
*/
native get_key_value(const pbuffer, const key[], const value[], const maxlen);
@ -52,6 +51,7 @@ native get_key_value(const pbuffer, const key[], const value[], const maxlen);
* @param value Value to set
*
* @noreturn
* @error If invalid buffer handler provided, an error will be thrown.
*/
native set_key_value(const pbuffer, const key[], const value[]);

View File

@ -122,8 +122,7 @@ cell AMX_NATIVE_CALL amx_get_viewent(AMX *amx, cell *params)
* @param maxlen Maximum size of the buffer
*
* @return Number of cells written to buffer
* @error If the index is not within the range of 1 to MaxClients or
* the client is not connected, an error will be thrown.
* @error If invalid buffer handler provided, an error will be thrown.
*
* native get_key_value(const pbuffer, const key[], const value[], const maxlen);
*/
@ -152,6 +151,7 @@ cell AMX_NATIVE_CALL amx_get_key_value(AMX *amx, cell *params)
* @param value Value to set
*
* @noreturn
* @error If invalid buffer handler provided, an error will be thrown.
*
* native set_key_value(const &pbuffer, const key[], const value[]);
*/