rehlds / ReAPI

AMXModX module providing APIs for ReHLDS, ReGameDLL, and Metamod plugins (e.g., ReUnion, ReVoice).
GNU General Public License v3.0
159 stars 105 forks source link

Major version mismatch on latest release #300

Closed WaLkZa closed 9 months ago

WaLkZa commented 10 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 9 months ago

@s1lentq Could you please check it?