entities.inc: Clarify EntIndexToEntRef / EntRefToEntIndex errors (#1370)
This commit is contained in:
parent
6b7fd8c3dc
commit
4a43ac1bdd
@ -649,7 +649,8 @@ stock void DisplayAskConnectBox(int client, float time, const char[] ip, const c
|
|||||||
* Converts an entity index into a serial encoded entity reference.
|
* Converts an entity index into a serial encoded entity reference.
|
||||||
*
|
*
|
||||||
* @param entity Entity index.
|
* @param entity Entity index.
|
||||||
* @return Entity reference.
|
* @return Entity reference or -1 on invalid entity.
|
||||||
|
* @error Entity index >= GetMaxEntities() or < 0
|
||||||
*/
|
*/
|
||||||
native int EntIndexToEntRef(int entity);
|
native int EntIndexToEntRef(int entity);
|
||||||
|
|
||||||
@ -657,7 +658,7 @@ native int EntIndexToEntRef(int entity);
|
|||||||
* Retrieves the entity index from a reference.
|
* Retrieves the entity index from a reference.
|
||||||
*
|
*
|
||||||
* @param ref Entity reference.
|
* @param ref Entity reference.
|
||||||
* @return Entity index.
|
* @return Entity index or -1 on invalid reference.
|
||||||
*/
|
*/
|
||||||
native int EntRefToEntIndex(int ref);
|
native int EntRefToEntIndex(int ref);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user