Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: RH_ExecuteServerStringCmd spams console #340

Open
that-is-not-great opened this issue Dec 26, 2024 · 1 comment
Open

[BUG]: RH_ExecuteServerStringCmd spams console #340

that-is-not-great opened this issue Dec 26, 2024 · 1 comment
Assignees
Labels
Status: 🖐 available Task currently opened. Type: 🐞 bug An error that needs fixing.

Comments

@that-is-not-great
Copy link

👉👈 Contact Details (optional)

No response

🤔 What happened?

RegisterHookChain(RH_ExecuteServerStringCmd, "RH_ExecuteServerStringCmd_Pre")

...

public RH_ExecuteServerStringCmd_Pre(const cmd[], source, id)
{
    static fullcmd[256];
 	read_argv(0, fullcmd, cx(fullcmd));

    log_amx("[OK] cmd [%s] [%s] [%s] [%i]", fullcmd, cmd, id, source)

    return HC_CONTINUE
}

the last used cmd will be spammed into the console forever, is that correct behavior?

⚠️ Meta-information

ReAPI            RUN   -    reapi_amxx_i386.so          v5.24.0.300-de

📄 Relevant log output

L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_knife] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
L 12/26/2024 - 13:57:38: [test.amxx] [OK] cmd [weapon_ak47] [] [] [1]
@that-is-not-great that-is-not-great added Status: 🖐 available Task currently opened. Type: 🐞 bug An error that needs fixing. labels Dec 26, 2024
@justgo97
Copy link

justgo97 commented Jan 11, 2025

This is related to #300
both RH_ExecuteServerStringCmd & RH_SV_AllowPhysent should be swapped plugin side for now
It's already fixed in master but new version didn't get released.

@s1lentq @SergeyShorokhov Time for a new version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: 🖐 available Task currently opened. Type: 🐞 bug An error that needs fixing.
Projects
None yet
Development

No branches or pull requests

3 participants