mirror of
https://github.com/rehlds/reapi.git
synced 2025-01-29 06:57:55 +03:00
Merge pull request #62 from WPMGPRoSToTeMa/patch-1
Added tag safety for get/set_member
This commit is contained in:
commit
8623af0647
@ -33,7 +33,9 @@ native any:get_member_game(CSGameRules_Members:member, any:...);
|
|||||||
*
|
*
|
||||||
* @return 1 on success.
|
* @return 1 on success.
|
||||||
*/
|
*/
|
||||||
native set_member(const index, any:member, any:...);
|
native set_member(const index, {CBaseEntity_Members, CBaseAnimating_Members, CBaseMonster_Members,
|
||||||
|
CBasePlayer_Members, CCSPlayer_Members, CBasePlayerItem_Members, CBasePlayerWeapon_Members,
|
||||||
|
CWeaponBox_Members, CArmoury_Members}:member, any:...);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Returns a value from an entity's member
|
* Returns a value from an entity's member
|
||||||
@ -43,7 +45,9 @@ native set_member(const index, any:member, any:...);
|
|||||||
*
|
*
|
||||||
* @return If an integer or boolean or one byte, array or everything else is passed via 3rd argument and more, look at argument list for specified member
|
* @return If an integer or boolean or one byte, array or everything else is passed via 3rd argument and more, look at argument list for specified member
|
||||||
*/
|
*/
|
||||||
native any:get_member(const index, any:member, any:...);
|
native any:get_member(const index, {CBaseEntity_Members, CBaseAnimating_Members, CBaseMonster_Members,
|
||||||
|
CBasePlayer_Members, CCSPlayer_Members, CBasePlayerItem_Members, CBasePlayerWeapon_Members,
|
||||||
|
CWeaponBox_Members, CArmoury_Members}:member, any:...);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sets a playermove vars
|
* Sets a playermove vars
|
||||||
|
Loading…
x
Reference in New Issue
Block a user