amxclient_cmd | more than 2 params
How to pass more than 2 params in amxclient_cmd? I tried to pass more than 1 param in arg1 and arg2 and both weren't working fine with read_argv(_*), it can read only 2 params.
I only wanna know if there's any way to force user execute amxmodx command with 3+ params(currently I need 4) without client_cmd, or should I parse params by myself(with strtok e.g.)? |
Re: amxclient_cmd | more than 2 params
|
Re: amxclient_cmd | more than 2 params
I would say no.
amxclient_cmd() and endclient_cmd() have the same syntax. This means, the same usage: *client_cmd( id, "drop", "weapon_c4" ) So, only cmd and/with 2 args. https://github.com/alliedmodders/amx...modx.cpp#L2757 https://github.com/alliedmodders/amx...modx.cpp#L2701 |
Re: amxclient_cmd | more than 2 params
So it mean I am only able to use client_cmd (to format cmd and params) or use read_args (to read all the params in one string and parse it on my own)?
|
Re: amxclient_cmd | more than 2 params
If what you say is true then it looks like you would need to submit a feature request to make it so that it can do a variable number of arguments (hopefully it will make it into AMX Mod X 1.10.0). I was the one who originally requested amxclient_cmd() and I guess I never thought about it needing to support more than what engclient_cmd() does probably because I've only ever used engclient_cmd() with a single argument IIRC.
Hopefully a variable number of arguments is possible because it's a good idea. |
Re: amxclient_cmd | more than 2 params
How do I submit the request?(Sorry for kinda stupid question)
|
Re: amxclient_cmd | more than 2 params
You can create an issue here: https://github.com/alliedmodders/amxmodx/issues (this will need an account)
|
All times are GMT -4. The time now is 08:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.