diff --git a/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc b/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc index 37e2f920..62482830 100644 --- a/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc +++ b/reapi/extra/amxmodx/scripting/include/reapi_gamedll.inc @@ -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 @@ -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. diff --git a/reapi/src/natives/natives_hookchains.cpp b/reapi/src/natives/natives_hookchains.cpp index bb212bcf..058c8e72 100644 --- a/reapi/src/natives/natives_hookchains.cpp +++ b/reapi/src/natives/natives_hookchains.cpp @@ -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); } diff --git a/reapi/src/natives/natives_members.cpp b/reapi/src/natives/natives_members.cpp index b9c23240..c9688377 100644 --- a/reapi/src/natives/natives_members.cpp +++ b/reapi/src/natives/natives_members.cpp @@ -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) { @@ -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) {