mirror of
https://github.com/rehlds/reapi.git
synced 2025-01-16 00:28:17 +03:00
Fix: typo to with getting weaponid
This commit is contained in:
parent
6cf5c99ded
commit
b03360a268
@ -1087,7 +1087,7 @@ enum ItemRestType
|
||||
{
|
||||
ITEM_TYPE_BUYING, // when a player buying items
|
||||
ITEM_TYPE_TOUCHED, // when the player touches with a weaponbox or armoury_entity
|
||||
ITEM_TYPE_EQUIPPED // when a entity game_player_equip to player gives item
|
||||
ITEM_TYPE_EQUIPPED // when a entity game_player_equip gives item to player or default item's on player spawn
|
||||
};
|
||||
|
||||
// constant items
|
||||
|
@ -31,7 +31,7 @@ enum ItemRestType
|
||||
{
|
||||
ITEM_TYPE_BUYING, // when a player buying items
|
||||
ITEM_TYPE_TOUCHED, // when the player touches with a weaponbox or armoury_entity
|
||||
ITEM_TYPE_EQUIPPED // when a entity game_player_equip to player gives item
|
||||
ITEM_TYPE_EQUIPPED // when a entity game_player_equip gives item to player or default item's on player spawn
|
||||
};
|
||||
|
||||
// constant items
|
||||
|
@ -594,7 +594,7 @@ cell AMX_NATIVE_CALL rg_get_weapon_info(AMX *amx, cell *params)
|
||||
{
|
||||
enum args_e { arg_count, arg_weapon_id, arg_type, arg_3, arg_4 };
|
||||
|
||||
WeaponIdType weaponID = static_cast<WeaponIdType>(params[arg_weapon_id]);
|
||||
WeaponIdType weaponID = static_cast<WeaponIdType>(*getAmxAddr(amx, params[arg_weapon_id]));
|
||||
WpnInfo info_type = static_cast<WpnInfo>(*getAmxAddr(amx, params[arg_type]));
|
||||
|
||||
if (!GetWeaponInfoRange(weaponID) && info_type != WI_ID)
|
||||
|
Loading…
x
Reference in New Issue
Block a user