Raised This Month: $32 Target: $400
 8% 

undefined symbol "amxclient_cmd"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rbasile
New Member
Join Date: Dec 2022
Old 12-01-2022 , 10:36   undefined symbol "amxclient_cmd"
Reply With Quote #1

Sorry if this is a little low effort, but I'm new to this and can't find whats wrong.

I've got this little script:

PHP Code:
#include <amxmodx>
#include <amxmisc>

public cmd_votemap(idlevelcid) {
    if (!
cmd_access(idlevelcid1))
        return 
PLUGIN_CONTINUE
    
    amxclient_cmd
(id"amx_votemapmenu")
    return 
PLUGIN_CONTINUE   
}

public 
plugin_init() {
    
register_plugin("say /votemap""1""rami")
    
register_clcmd("say /votemap""cmd_votemap"0"- Shows the votemap menu")

And when I compile it with the web compiler I get:

PHP Code:
/tmp/textmWzvk1.sma(8) : error 017undefined symbol "amxclient_cmd" 
Is amxclient_cmd not part of amxmodx? The API says so[1].

[1]: <https://www.amxmodx.org/api/amxmodx/amxclient_cmd>
rbasile is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 12-01-2022 , 11:34   Re: undefined symbol "amxclient_cmd"
Reply With Quote #2

client_cmd
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
rbasile
New Member
Join Date: Dec 2022
Old 12-01-2022 , 12:42   Re: undefined symbol "amxclient_cmd"
Reply With Quote #3

That was it, many thanks
rbasile is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-01-2022 , 22:43   Re: undefined symbol "amxclient_cmd"
Reply With Quote #4

Your issue is that you're using an old version of AMX Mod X. amxclient_cmd() is new in AMX Mod X 1.9.0. If you can update your server to use 1.9.0, you should prefer to use engclient_cmd() or amxclient_cmd() over client_cmd() whenever possible.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode