Skip to content

Commit e808d72

Browse files
committed
Removed unnecessary filters
set_rebuy fix tag mismatch
1 parent 8257f3a commit e808d72

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ native any:get_pmtrace(const tracehandle, const PMTrace:var, any:...);
203203
*
204204
* @return 1 on success.
205205
*/
206-
native set_rebuy(const RebuyHandle:rebuyhandle, const RebuyStruct:member, value);
206+
native set_rebuy(const RebuyHandle:rebuyhandle, const RebuyStruct:member, any:value);
207207

208208
/*
209209
* Returns a RebuyStruct member
@@ -212,7 +212,7 @@ native set_rebuy(const RebuyHandle:rebuyhandle, const RebuyStruct:member, value)
212212
*
213213
* @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
214214
*/
215-
native get_rebuy(const RebuyHandle:rebuyhandle, RebuyStruct:member);
215+
native any:get_rebuy(const RebuyHandle:rebuyhandle, RebuyStruct:member);
216216

217217
/*
218218
* Assign the number of the player's animation.

reapi/src/natives/natives_hookchains.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,5 @@ AMX_NATIVE_INFO HookChain_Natives[] =
385385

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

reapi/src/natives/natives_members.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ cell AMX_NATIVE_CALL get_pmtrace(AMX *amx, cell *params)
674674
*
675675
* @return 1 on success.
676676
*
677-
* native set_rebuy(const rebuyhandle, const RebuyStruct:member, value);
677+
* native set_rebuy(const rebuyhandle, const RebuyStruct:member, any:value);
678678
*/
679679
cell AMX_NATIVE_CALL set_rebuy(AMX *amx, cell *params)
680680
{
@@ -702,7 +702,7 @@ cell AMX_NATIVE_CALL set_rebuy(AMX *amx, cell *params)
702702
*
703703
* @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
704704
*
705-
* native get_rebuy(const rebuyhandle, RebuyStruct:member);
705+
* native any:get_rebuy(const rebuyhandle, RebuyStruct:member);
706706
*/
707707
cell AMX_NATIVE_CALL get_rebuy(AMX *amx, cell *params)
708708
{

0 commit comments

Comments
 (0)