Mark return as bool & improve documentation

This commit is contained in:
HamletEagle 2018-09-30 12:17:49 -07:00
parent 12f0e1743f
commit 9367015d6c
2 changed files with 3 additions and 3 deletions

View File

@ -1054,7 +1054,7 @@ static cell AMX_NATIVE_CALL cs_get_user_hasprimary(AMX *amx, cell *params)
return 0;
}
// native cs_has_user_weapon_in_slot(index, slot);
// native bool:cs_has_user_weapon_in_slot(index, slot);
static cell AMX_NATIVE_CALL cs_has_user_weapon_in_slot(AMX *amx, cell *params)
{
GET_OFFSET("CBasePlayer", m_rgpPlayerItems);

View File

@ -213,14 +213,14 @@ native cs_get_user_hasprim(index);
* Returns if the client has a weapon in the specified inventory slot.
*
* @param index Client index
* @param slot Slot to check
* @param slot Slot to check. See CS_WEAPONSLOT_* in cstrike_const.inc for a list of possible values.
*
* @return 1 if the client has a weapon in the specified slot, 0 otherwise
* @error If the client index is not within the range of 1 to
* MaxClients, or the client is not connected, an error will be
* thrown.
*/
native cs_has_user_weapon_in_slot(index, slot);
native bool:cs_has_user_weapon_in_slot(index, slot);
/**