s1lentq / reapi

AMX Mod X module, using API regamedll & rehlds
GNU General Public License v3.0
160 stars 103 forks source link

Major version mismatch on latest release #300

Closed WaLkZa closed 7 months ago

WaLkZa commented 8 months ago

I'm hearing from different people that they have compile issues with latest reapi release. I don't faced this issue but I've tested on local with latest rehlds, regamedll and reapi and especially one plugin with RH_ExecuteServerStringCmd hook:

#include <amxmodx>
#include <reapi>

public plugin_init()
{
    RegisterHookChain(RH_ExecuteServerStringCmd, "ExecuteServerString")
}

public ExecuteServerString(cmd[], source, id)
{
    server_print("%s", cmd)
    //server_print("command: %s | %d | %d | %n", cmd, source, id, id)
    if (equali(cmd, "status"))
    {
        console_print(id, "Unknown command: %s", cmd)
        return HC_SUPERCEDE
    }
    return HC_CONTINUE
}

Output from server_print("%s", cmd): major version mismatch; expected %d, real %d

And the blocking behavior does not working.

The server console is clear on startup.

WaLkZa commented 7 months ago

@s1lentq Could you please check it?