Skip to content

Commit

Permalink
Removed unnecessary filters
Browse files Browse the repository at this point in the history
set_rebuy fix tag mismatch
  • Loading branch information
s1lentq committed Jan 15, 2021
1 parent 8257f3a commit e808d72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ native any:get_pmtrace(const tracehandle, const PMTrace:var, any:...);
*
* @return 1 on success.
*/
native set_rebuy(const RebuyHandle:rebuyhandle, const RebuyStruct:member, value);
native set_rebuy(const RebuyHandle:rebuyhandle, const RebuyStruct:member, any:value);

/*
* Returns a RebuyStruct member
Expand All @@ -212,7 +212,7 @@ native set_rebuy(const RebuyHandle:rebuyhandle, const RebuyStruct:member, value)
*
* @return If an integer or boolean or one byte, array or everything else is passed via the 3rd argument and more, look at the argument list for the specified RebuyStruct
*/
native get_rebuy(const RebuyHandle:rebuyhandle, RebuyStruct:member);
native any:get_rebuy(const RebuyHandle:rebuyhandle, RebuyStruct:member);

/*
* Assign the number of the player's animation.
Expand Down
3 changes: 0 additions & 3 deletions reapi/src/natives/natives_hookchains.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,5 @@ AMX_NATIVE_INFO HookChain_Natives[] =

void RegisterNatives_HookChains()
{
if (!api_cfg.hasReHLDS() && !api_cfg.hasReGameDLL())
fillNatives(HookChain_Natives, [](AMX *amx, cell *params) -> cell { AMXX_LogError(amx, AMX_ERR_NATIVE, "You need ReHlds or ReGameDll for use hookchains"); return FALSE; });

g_amxxapi.AddNatives(HookChain_Natives);
}
4 changes: 2 additions & 2 deletions reapi/src/natives/natives_members.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ cell AMX_NATIVE_CALL get_pmtrace(AMX *amx, cell *params)
*
* @return 1 on success.
*
* native set_rebuy(const rebuyhandle, const RebuyStruct:member, value);
* native set_rebuy(const rebuyhandle, const RebuyStruct:member, any:value);
*/
cell AMX_NATIVE_CALL set_rebuy(AMX *amx, cell *params)
{
Expand Down Expand Up @@ -702,7 +702,7 @@ cell AMX_NATIVE_CALL set_rebuy(AMX *amx, cell *params)
*
* @return If an integer or boolean or one byte, array or everything else is passed via the 3rd argument and more, look at the argument list for the specified RebuyStruct
*
* native get_rebuy(const rebuyhandle, RebuyStruct:member);
* native any:get_rebuy(const rebuyhandle, RebuyStruct:member);
*/
cell AMX_NATIVE_CALL get_rebuy(AMX *amx, cell *params)
{
Expand Down

0 comments on commit e808d72

Please sign in to comment.