Quote:
Originally Posted by lucky109
how to replace space to _ if command have space?
E.G
Code:
#include <amxmodx>
public plugin_init() {
register_plugin("test","1.0",test")
register_clcmd("test","test_function",0,"test <sentence words>")
return PLUGIN_CONTINUE
}
public test_function(id) {
new arg[32]
read_argv(1,arg,31)
client_print(id,print_chat,"%s",arg)
}
if i have to type "test helo goodmorning john"
it's show "helo" only
how can i get the full sentence " helo goodmorning john" ??
thanks
|
If i correctly understood what u meant then just try to replace read_argv(1,arg,31) with: read_args(arg,31)
EDIT: eww a sec to late